blob: 7e544ef1f33ec0942c842e8ca5f08d7768d371e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/bash
pidof -s xinit && exit 0
[ -z "$STXTARG" ] && STXTARG="$1"
if [ -z "$STXTARG" ];then
read -p "Start: e16, xmonad, gnome or kde? " STXTARG
[ -z "$STXTARG" ] && STXTARG="xmonad"
fi
case "$STXTARG" in
e16)
diff ~/.xsession-e16 ~/.xsession &> /dev/null
[ "$?" -ne 0 ] && ln -sf .xsession-e16 ~/.xsession
;;
xmonad)
diff ~/.xsession-xmonad ~/.xsession &> /dev/null
[ "$?" -ne 0 ] && ln -sf .xsession-xmonad ~/.xsession
;;
gnome)
diff ~/.xsession-gnome ~/.xsession &> /dev/null
[ "$?" -ne 0 ] && ln -sf .xsession-gnome ~/.xsession
;;
kde)
diff ~/.xsession-kde ~/.xsession &> /dev/null
[ "$?" -ne 0 ] && ln -sf .xsession-kde ~/.xsession
;;
*)
echo "Sorry, I don't know $STXTARG as window manager."
exit 1
;;
esac
startx
|