39 |
|
|
40 |
# use some defaults for icon, dest, {x,y}res |
# use some defaults for icon, dest, {x,y}res |
41 |
[[ -z ${xres} ]] && xres=50 |
[[ -z ${xres} ]] && xres=50 |
42 |
[[ -z ${yres} ]] && xres=50 |
[[ -z ${yres} ]] && yres=50 |
43 |
if [[ -z ${icon} ]] |
if [[ -z ${icon} ]] |
44 |
then |
then |
45 |
# if no default icon is given use default.png |
# if no default icon is given use default.png |
57 |
addconfig "deficon=\"${deficon}\"" |
addconfig "deficon=\"${deficon}\"" |
58 |
addconfig "xres=\"${xres}\"" |
addconfig "xres=\"${xres}\"" |
59 |
addconfig "yres=\"${yres}\"" |
addconfig "yres=\"${yres}\"" |
60 |
if [[ -z ${iwidth} ]] |
if [[ ! -z ${iwidth} ]] |
61 |
then |
then |
|
addconfig "iwidth=0" |
|
|
else |
|
62 |
addconfig "iwidth=\"${iwidth}\"" |
addconfig "iwidth=\"${iwidth}\"" |
63 |
fi |
fi |
64 |
|
|
65 |
if [[ -z ${iheight} ]] |
if [[ ! -z ${iheight} ]] |
66 |
then |
then |
|
addconfig="iheight=0" |
|
|
else |
|
67 |
addconfig "iheight=\"${iheight}\"" |
addconfig "iheight=\"${iheight}\"" |
68 |
fi |
fi |