diff options
author | ben <benjaminfranzke@gmail.com> | 2010-01-04 20:58:50 +0100 |
---|---|---|
committer | ben <benjaminfranzke@gmail.com> | 2010-01-04 20:58:50 +0100 |
commit | 280e8ecf8c0c73c37c7b31b3533733532f5d2211 (patch) | |
tree | 66f81c26f65423031cd3b04b2d77284038094cde /.config/openbox/scripts/xcompmgr.sh | |
parent | b742096b9d111b7be23fb2bd4726bf71c8972c40 (diff) | |
download | dotfiles-280e8ecf8c0c73c37c7b31b3533733532f5d2211.tar.gz dotfiles-280e8ecf8c0c73c37c7b31b3533733532f5d2211.tar.bz2 dotfiles-280e8ecf8c0c73c37c7b31b3533733532f5d2211.zip |
add openbox configuration
Diffstat (limited to '.config/openbox/scripts/xcompmgr.sh')
-rwxr-xr-x | .config/openbox/scripts/xcompmgr.sh | 94 |
1 files changed, 94 insertions, 0 deletions
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 <http://crunchbang.org/projects/linux/> +# by Philip Newborough (aka corenominal) <mail@philipnewborough.co.uk> + +# 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_ + <openbox_pipe_menu> + <separator label="Compositing" /> + <item label="Enable Compositing"> + <action name="Execute"> + <execute>~/.config/openbox/scripts/xcompmgr.sh --startstop</execute> + </action> + </item> + </openbox_pipe_menu> +_EOF_ +else + cat << _EOF_ + <openbox_pipe_menu> + <separator label="Compositing" /> + <item label="Remove Transparency from Target Window"> + <action name="Execute"> + <execute>transset-df 1</execute> + </action> + </item> + <item label="Set Target Window Transparency to 10%"> + <action name="Execute"> + <execute>transset-df .90</execute> + </action> + </item> + <item label="Set Target Window Transparency to 20%"> + <action name="Execute"> + <execute>transset-df .80</execute> + </action> + </item> + <item label="Set Target Window Transparency to 30%"> + <action name="Execute"> + <execute>transset-df .70</execute> + </action> + </item> + <item label="Set Target Window Transparency to 40%"> + <action name="Execute"> + <execute>transset-df .60</execute> + </action> + </item> + <item label="Set Target Window Transparency to 50%"> + <action name="Execute"> + <execute>transset-df .50</execute> + </action> + </item> + <item label="Set Target Window Transparency to 60%"> + <action name="Execute"> + <execute>transset-df .40</execute> + </action> + </item> + <item label="Set Target Window Transparency to 70%"> + <action name="Execute"> + <execute>transset-df .30</execute> + </action> + </item> + <item label="Set Target Window Transparency to 80%"> + <action name="Execute"> + <execute>transset-df .20</execute> + </action> + </item> + <item label="Set Target Window Transparency to 90%"> + <action name="Execute"> + <execute>transset-df .10</execute> + </action> + </item> + <separator/> + <item label="Disable Compositing"> + <action name="Execute"> + <execute>~/.config/openbox/scripts/xcompmgr.sh --startstop</execute> + </action> + </item> + </openbox_pipe_menu> +_EOF_ +fi +exit 0 |