aboutsummaryrefslogtreecommitdiffstats
path: root/_config/openbox/scripts/xcompmgr.sh
diff options
context:
space:
mode:
Diffstat (limited to '_config/openbox/scripts/xcompmgr.sh')
-rwxr-xr-x_config/openbox/scripts/xcompmgr.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/_config/openbox/scripts/xcompmgr.sh b/_config/openbox/scripts/xcompmgr.sh
new file mode 100755
index 0000000..e59eb6a
--- /dev/null
+++ b/_config/openbox/scripts/xcompmgr.sh
@@ -0,0 +1,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