200 |
|
|
201 |
# split res to x & y |
# split res to x & y |
202 |
xres="${res%x*}" |
xres="${res%x*}" |
203 |
xres="${res#*x}" |
yres="${res#*x}" |
204 |
|
|
205 |
# top left edge of the icon is given in config file |
# top left edge of the icon is given in config file |
206 |
# remove a little bit to simulate the bottom-right edge |
# remove a little bit to simulate the bottom-right edge |
207 |
xres="$(( ${xres} - 120 ))" |
xres="$(( ${xres} - 120 ))" |
208 |
yres="$(( ${yres} - 80 ))" |
yres="$(( ${yres} - 80 ))" |
209 |
|
|
|
# basic config |
|
|
cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc > ${ALX_UNPRIV_HOME}/.xtdeskrc |
|
|
|
|
210 |
# clean desktop icon location |
# clean desktop icon location |
211 |
[ -d ${ALX_UNPRIV_HOME}/.xtdesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.xtdesktop |
[ -d ${ALX_UNPRIV_HOME}/.xtdesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.xtdesktop |
212 |
install -d ${ALX_UNPRIV_HOME}/.xtdesktop |
install -d ${ALX_UNPRIV_HOME}/.xtdesktop |
213 |
|
|
214 |
|
# basic config |
215 |
|
cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc > ${ALX_UNPRIV_HOME}/.xtdesktop/xtdeskrc |
216 |
|
|
217 |
# default settings |
# default settings |
218 |
declare -i x=30 |
declare -i x=30 |
219 |
declare -i y=30 |
declare -i y=30 |
245 |
fi |
fi |
246 |
|
|
247 |
generate_icon \ |
generate_icon \ |
248 |
--name "${cfg_session_session}" \ |
--name "${cfg_sessions_session}" \ |
249 |
--command "nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_session_filename})" \ |
--command "nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_sessions_filename})" \ |
250 |
--icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_session_session}).png" \ |
--icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_sessions_session}).png" \ |
251 |
--dest "${ALX_UNPRIV_HOME}/.xtdesktop/$(fix_whitespaces ${cfg_session_session}).lnk" \ |
--dest "${ALX_UNPRIV_HOME}/.xtdesktop/$(fix_whitespaces ${cfg_sessions_session}).lnk" \ |
252 |
--xres "${x}" \ |
--xres "${x}" \ |
253 |
--yres "${y}" |
--yres "${y}" |
254 |
|
|
282 |
|
|
283 |
generate_icon \ |
generate_icon \ |
284 |
--name "${cfg_other_menuitems_name}" \ |
--name "${cfg_other_menuitems_name}" \ |
285 |
--command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_exec})" \ |
--command "${progsh_path}/$(fix_whitespaces ${cfg_other_menuitems_name})" \ |
286 |
--icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_other_menuitems_name}).png" \ |
--icon "${ALX_SESSIONS_ICONS}/$(fix_whitespaces ${cfg_other_menuitems_name}).png" \ |
287 |
--dest "${ALX_UNPRIV_HOME}/.xtdesktop/$(fix_whitespaces ${cfg_other_menuitems_name}).lnk" \ |
--dest "${ALX_UNPRIV_HOME}/.xtdesktop/$(fix_whitespaces ${cfg_other_menuitems_name}).lnk" \ |
288 |
--xres "${x}" \ |
--xres "${x}" \ |
370 |
# add autostart session |
# add autostart session |
371 |
if [[ ! -z ${cfg_autostart_session} ]] |
if [[ ! -z ${cfg_autostart_session} ]] |
372 |
then |
then |
373 |
addconfig "[startup] {nohup nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}" |
# sleep one second to wait until busybox is fully initialized and the screen is really centered |
374 |
|
addconfig "[startup] {sleep 1 && nohup nice -n 19 wfica ${ALX_ICA_SESSIONS}/$(fix_whitespaces ${cfg_autostart_session}) &}" |
375 |
fi |
fi |
376 |
|
|
377 |
# fluxbox hotkeys |
# fluxbox hotkeys |