27 |
|
|
28 |
# which input devices are we using ? |
# which input devices are we using ? |
29 |
ALX_MOUSE=$(mysqldo "select mouse from cfg_input where serial='${ALX_SERIAL}'") |
ALX_MOUSE=$(mysqldo "select mouse from cfg_input where serial='${ALX_SERIAL}'") |
30 |
|
ALX_MOUSE_RESOLUTION=$(mysqldo "select mouse_resolution from cfg_input where serial='${ALX_SERIAL}'") |
31 |
export ALX_MOUSE |
export ALX_MOUSE |
32 |
} |
} |
33 |
|
|
34 |
|
config_display_manager() |
35 |
|
{ |
36 |
|
# setup slim |
37 |
|
cat ${ALX_SKELETONS}/slim/slim.conf > /etc/slim.conf |
38 |
|
sed -i "s:@@USERNAME@@:${ALX_UNPRIV_USER}:" /etc/slim.conf |
39 |
|
|
40 |
|
# setup xession |
41 |
|
sed -i "s:\(^GLOGIN=\).*:\1slim:" /etc/rc.config |
42 |
|
|
43 |
|
# windowmanager |
44 |
|
echo "exec startfluxbox" > ${ALX_UNPRIV_HOME}/.xinitrc |
45 |
|
} |
46 |
|
|
47 |
config_x11() |
config_x11() |
48 |
{ |
{ |
49 |
# get our settings from the db |
# get our settings from the db |
50 |
get_x11_settings |
get_x11_settings |
51 |
|
|
52 |
|
# setup displaymanager |
53 |
|
config_display_manager |
54 |
|
|
55 |
local xserver |
local xserver |
56 |
local xfconfig |
local xfconfig |
57 |
local HAS_VNC |
local HAS_VNC |
201 |
*) device=/dev/mouse;; |
*) device=/dev/mouse;; |
202 |
esac |
esac |
203 |
echo " Option \"Device\" \"${device}\"" >> ${xfconfig} |
echo " Option \"Device\" \"${device}\"" >> ${xfconfig} |
204 |
echo ' Option "Resolution" "1200"' >> ${xfconfig} |
|
205 |
|
[[ -z ${ALX_MOUSE_RESOLUTION} ]] && ALX_MOUSE_RESOLUTION="1200" |
206 |
|
echo " Option \"Resolution\" \"${ALX_MOUSE_RESOLUTION}\"" >> ${xfconfig} |
207 |
|
|
208 |
[[ ${ALX_MOUSE} = IMPS/2 ]] && echo ' Option "ZAxisMapping" "4 5"' >> ${xfconfig} |
[[ ${ALX_MOUSE} = IMPS/2 ]] && echo ' Option "ZAxisMapping" "4 5"' >> ${xfconfig} |
209 |
|
|