#!/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.11 -D7 -m.86' # more bling # Toggle compositing. Call with "xcompmgr_openbox --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_ xcompmgr_openbox --startstop _EOF_ else cat << _EOF_ transset 1 transset .90 transset .80 transset .70 transset .60 transset .50 transset .40 transset .30 transset .20 transset .10 xcompmgr_openbox --startstop _EOF_ fi exit 0