From 0fd3fb5eb258bb1bbf08ffd11bc43bde7722f06a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 6 Jan 2016 19:23:48 +0800 Subject: Rename .config => _config --- _config/openbox/scripts/xcompmgr.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 _config/openbox/scripts/xcompmgr.sh (limited to '_config/openbox/scripts/xcompmgr.sh') 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 -- cgit v1.2.2