summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib/live/config/9024-lxde-compositor
blob: 0624de757c8dca37b9f793e720a57961f32fe17e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

Composit ()
{
	# Checking if configured
	if [ -e /var/lib/live/config/composit ]
	then
		return
	fi
	echo -n " composit"
	Configure_composit
}
Configure_composit ()
{
	# Boot parameters can be acted up either this way...
	if grep -qs "compton" /proc/cmdline
	then
	    touch /home/${LIVE_USERNAME}/.compton
	    touch /home/${LIVE_USERNAME}/.nocompiz
	    chown 1000:1000 /home/${LIVE_USERNAME}/.compton
	    chown 1000:1000 /home/${LIVE_USERNAME}/.nocompiz
	fi
	if grep -qs "nocompiz" /proc/cmdline
	then
	    touch /home/${LIVE_USERNAME}/.nocompiz
	    chown 1000:1000 /home/${LIVE_USERNAME}/.compiz
	    if [ -e /home/${LIVE_USERNAME}/.config/kwinrc ]; then
		echo "[Compositing]" >>/home/${LIVE_USERNAME}/.config/kwinrc
		echo "Enabled=false" >>/home/${LIVE_USERNAME}/.config/kwinrc
		chown 1000:1000 /home/${LIVE_USERNAME}/.config/kwinrc
	    fi
	fi
	if grep -qs "awesome" /proc/cmdline
	then
	    if [ -x /usr/bin/awesome ]; then
		touch /home/${LIVE_USERNAME}/.nocompiz
		touch /home/${LIVE_USERNAME}/.awesome-wmanager
		chown 1000:1000 /home/${LIVE_USERNAME}/.compton
		chown 1000:1000 /home/${LIVE_USERNAME}/.awesome-wmanager
		echo "[Desktop]" >/home/${LIVE_USERNAME}/.dmrc
		echo "Session=awesome" >>/home/${LIVE_USERNAME}/.dmrc
		chown 1000:1000 /home/${LIVE_USERNAME}/.dmrc
	    fi
	fi
	
	if grep -qs "xbmc" /proc/cmdline
	then
	    if [ -x /usr/bin/xbmc ]; then
		touch /home/${LIVE_USERNAME}/.nocompiz
		chown 1000:1000 /home/${LIVE_USERNAME}/.nocompiz
		echo "[Desktop]" >/home/${LIVE_USERNAME}/.dmrc
		echo "Session=XBMC" >>/home/${LIVE_USERNAME}/.dmrc
		chown 1000:1000 /home/${LIVE_USERNAME}/.dmrc
	    fi
	fi
	# Creating state file
	touch /var/lib/live/config/composit
}

Composit