From 280e8ecf8c0c73c37c7b31b3533733532f5d2211 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 4 Jan 2010 20:58:50 +0100 Subject: add openbox configuration --- .config/openbox/scripts/xcompmgr.sh | 94 +++++++++++++++++++++++++++++++++++++ 1 file changed, 94 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..f19dcc2 --- /dev/null +++ b/.config/openbox/scripts/xcompmgr.sh @@ -0,0 +1,94 @@ +#!/bin/bash +# Openbox Pipe Menu for xcompmgr +# Written for CrunchBang Linux +# by Philip Newborough (aka corenominal) + +# Set xcompmgr command options +#EXEC='xcompmgr -c -t-5 -l-5 -r4.2 -o.55' #basic +EXEC='xcompmgr -cCfF -t-5 -l-5 -r4.2 -o.55 -D6' #more effects + +# Toggle compositing. Call with "myxcompmgr --startstop" +if [ "$1" = "--startstop" ]; then + if [ ! "$(pidof xcompmgr)" ]; then + $EXEC + else + killall xcompmgr + fi + exit 0 +fi +# Output Openbox menu +if [ ! "$(pidof xcompmgr)" ]; then + cat << _EOF_ + + + + + ~/.config/openbox/scripts/xcompmgr.sh --startstop + + + +_EOF_ +else + cat << _EOF_ + + + + + transset-df 1 + + + + + transset-df .90 + + + + + transset-df .80 + + + + + transset-df .70 + + + + + transset-df .60 + + + + + transset-df .50 + + + + + transset-df .40 + + + + + transset-df .30 + + + + + transset-df .20 + + + + + transset-df .10 + + + + + + ~/.config/openbox/scripts/xcompmgr.sh --startstop + + + +_EOF_ +fi +exit 0 -- cgit