aboutsummaryrefslogtreecommitdiffstats
path: root/_config/openbox/scripts/xcompmgr.sh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-06 19:23:48 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-06 19:23:48 +0800
commit0fd3fb5eb258bb1bbf08ffd11bc43bde7722f06a (patch)
tree1fd5e3db4e9c7947889be60325046a5cc2c37388 /_config/openbox/scripts/xcompmgr.sh
parent028ab301fe80c9ed872fe8ba4be2819648e30d97 (diff)
downloaddotfiles-0fd3fb5eb258bb1bbf08ffd11bc43bde7722f06a.tar.bz2
Rename .config => _config
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