|
@@ -11,20 +11,13 @@
|
11
|
11
|
echo "luther heads = NOPASSWD: /usr/local/lib/heads/heads-welcome" \
|
12
|
12
|
> /etc/sudoers.d/heads-welcome
|
13
|
13
|
|
|
14
|
+wm=openbox
|
14
|
15
|
for i in $(cat /proc/cmdline); do
|
15
|
16
|
[ "$i" = "awesome" ] && wm=awesome
|
16
|
17
|
done
|
17
|
18
|
|
18
|
|
-case "$wm" in
|
19
|
|
- awesome)
|
20
|
|
- cp /usr/local/share/heads/awesome.xinitrc /home/luther/.xinitrc
|
21
|
|
- cp /usr/local/share/heads/welcome-awesome.txt /home/luther/welcome.txt
|
22
|
|
- ;;
|
23
|
|
- *)
|
24
|
|
- cp /usr/local/share/heads/openbox.xinitrc /home/luther/.xinitrc
|
25
|
|
- cp /usr/local/share/heads/welcome-openbox.txt /home/luther/welcome.txt
|
26
|
|
- ;;
|
27
|
|
-esac
|
|
19
|
+cp /usr/local/share/heads/$wm.xinitrc /home/luther/.xinitrc
|
|
20
|
+cp /usr/local/share/heads/welcome-$wm.xinitrc /home/luther/Desktop/welcome.txt
|
28
|
21
|
|
29
|
22
|
# Needs allowed_users=anybody in Xwrapper.config
|
30
|
23
|
grep -q ' nox' /proc/cmdline || su -c /usr/local/lib/heads/heads-startx luther &
|