--- alx-src/branches/alxconf_20060908/alxconfig-ng/functions/config_sessions.sh 2009/02/04 19:51:39 543 +++ alx-src/branches/alxconf_20060908/functions/config_sessions.sh 2010/12/28 12:46:26 1642 @@ -237,8 +237,8 @@ [ -z "${command}" ] && return 1 # use some defaults for icon, dest, {x,y}res - [ -z "${xres}" ] && xres=20 - [ -z "${yres}" ] && xres=20 + [ -z "${xres}" ] && xres=30 + [ -z "${yres}" ] && xres=30 [ -z "${dest}" ] && dest="${ALX_UNPRIV_HOME}/.xtdesktop/${name}.lnk" if [ -z "${icon}" ] || [ ! -f "${icon}" ] then @@ -298,8 +298,8 @@ # default settings - declare -i x=20 - declare -i y=20 + declare -i x=30 + declare -i y=30 # first all ica sessions local count=${#ALX_SESSIONS[*]} @@ -316,17 +316,17 @@ # new line if x > xres if [ ${x} -ge ${xres} ];then - x=20 + x=30 y=$((${y} + 80)) fi # new row if y > yres if [ ${y} -ge ${yres} ];then x=$((${x} + 120)) - y=20 + y=30 # re-check x - [ ${x} -ge ${xres} ] && x=20 + [ ${x} -ge ${xres} ] && x=30 fi # ica icons @@ -334,7 +334,7 @@ basename_item="$(basename ${item} .ica)" generate_icon \ --name "${basename_item}" \ - --command "nice -n 19 wfica ${ALX_ICA_SESSIONS}/${item}" \ + --command "numlockx on && nice -n 19 wfica ${ALX_ICA_SESSIONS}/${item}" \ --icon "${ALX_SESSIONS_ICONS}/${basename_item}.png" \ --dest "${ALX_UNPRIV_HOME}/.xtdesktop/${basename_item}.lnk" \ --xres "${x}" \ @@ -356,17 +356,17 @@ # new line if x > xres if [ ${x} -ge ${xres} ];then - x=20 + x=30 y=$((${y} + 80)) fi # new row if y > yres if [ ${y} -ge ${yres} ];then x=$((${x} + 120)) - y=20 + y=30 # re-check x - [ ${x} -ge ${xres} ] && x=20 + [ ${x} -ge ${xres} ] && x=30 fi generate_icon \ @@ -485,7 +485,7 @@ for (( i=0; i < count; i++ )) do [ -n "${ALX_SESSIONS[${i}]}" ] && \ - echo "[exec] ($(basename ${ALX_SESSIONS[${i}]} .ica)) {nice -n 19 wfica ${ALX_ICA_SESSIONS}/${ALX_SESSIONS[${i}]}}" \ + echo "[exec] ($(basename ${ALX_SESSIONS[${i}]} .ica)) {numlockx on && nice -n 19 wfica ${ALX_ICA_SESSIONS}/${ALX_SESSIONS[${i}]}}" \ >> ${ALX_UNPRIV_HOME}/.fluxbox/menu done