21 |
--command|-c) shift; command="$1" ;; |
--command|-c) shift; command="$1" ;; |
22 |
--icon|-i) shift; icon="$1" ;; |
--icon|-i) shift; icon="$1" ;; |
23 |
--filename|-f) shift; filename="$1" ;; |
--filename|-f) shift; filename="$1" ;; |
24 |
--xres|-x) shift; xres="$1" ;; |
--xpos|-x) shift; xpos="$1" ;; |
25 |
--yres|-y) shift; yres="$1" ;; |
--ypos|-y) shift; ypos="$1" ;; |
26 |
--icon-width|-w) shift; iwidth="$1" ;; |
--icon-width|-w) shift; iwidth="$1" ;; |
27 |
--icon-height|-h) shift; iheight="$1" ;; |
--icon-height|-h) shift; iheight="$1" ;; |
28 |
--default-icon) shift; deficon="$1" ;; |
--default-icon) shift; deficon="$1" ;; |
41 |
|
|
42 |
[[ -z ${filename} ]] && filename="${name}" |
[[ -z ${filename} ]] && filename="${name}" |
43 |
|
|
44 |
# use some defaults for icon, dest, {x,y}res |
# use some defaults for icon, dest, {x,y}pos |
45 |
[[ -z ${xres} ]] && xres=50 |
[[ -z ${xpos} ]] && xpos=50 |
46 |
[[ -z ${yres} ]] && yres=50 |
[[ -z ${ypos} ]] && ypos=50 |
47 |
if [[ -z ${icon} ]] |
if [[ -z ${icon} ]] |
48 |
then |
then |
49 |
# if no default icon is given use default.png |
# if no default icon is given use default.png |
59 |
addconfig "command=\"${command}\"" |
addconfig "command=\"${command}\"" |
60 |
addconfig "icon=\"${icon}\"" |
addconfig "icon=\"${icon}\"" |
61 |
addconfig "deficon=\"${deficon}\"" |
addconfig "deficon=\"${deficon}\"" |
62 |
addconfig "xres=\"${xres}\"" |
addconfig "xpos=\"${xpos}\"" |
63 |
addconfig "yres=\"${yres}\"" |
addconfig "ypos=\"${ypos}\"" |
64 |
if [[ ! -z ${iwidth} ]] |
if [[ ! -z ${iwidth} ]] |
65 |
then |
then |
66 |
addconfig "iwidth=\"${iwidth}\"" |
addconfig "iwidth=\"${iwidth}\"" |