diff options
Diffstat (limited to '.config/openbox/scripts/xcompmgr.sh')
-rwxr-xr-x | .config/openbox/scripts/xcompmgr.sh | 25 |
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 |