aboutsummaryrefslogtreecommitdiffstats
path: root/_config/openbox/scripts/xcompmgr.sh
blob: e59eb6af9bf9e3e80ec65047c8473548133808c8 (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
#!/bin/sh

case "$1" in
	set)
	killall xcompmgr
	sed -i 's/#xcompmgr.*$/xcompmgr \&/g' ~/.config/openbox/autostart.sh
	xcompmgr &
	;;
	unset)
	sed -i 's/^xcompmgr.*$/#xcompmgr \&/g' ~/.config/openbox/autostart.sh
	killall xcompmgr
	;;
	setshaded)
	killall xcompmgr
	sed -i 's/#xcompmgr.*$/xcompmgr -CfF \&/g' ~/.config/openbox/autostart.sh
	xcompmgr -CfF &
	;;
	setshadowshade)
	killall xcompmgr
	sed -i 's/#xcompmgr.*$/xcompmgr -CcfF \&/g' ~/.config/openbox/autostart.sh
	xcompmgr -CcfF &
	;;
	*)
		echo "This script accepts the following arguments : set, setshaded, setshadowshade, unset"
esac