diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-06-21 22:44:06 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-06-21 22:44:06 +0800 |
commit | 886eab400e2883b9424243b72af3002896781e02 (patch) | |
tree | f730ba706478a1e8fcafcefc8b7c1f5f4b4d57e2 /.config/openbox/scripts/xcompmgr.sh | |
parent | b35be1d080b8abcbe989dc2687d61b4b2d450099 (diff) | |
download | dotfiles-886eab400e2883b9424243b72af3002896781e02.tar.bz2 |
Updated & Added configuration files.
Added:
* .calendar (BSD calendar)
* .config/openbox/
* .config/tint2/
* .rtorrent.rc
* .screenrc
* .tcsh/, .tcshrc, .tcshrc.local
Updated:
* .gitignore
* .lftp/rc
* .tmux.conf
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 |