#!/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