From 17fc734d20035c84fc903f185dd10f85fdc489b3 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Wed, 28 Jan 2015 18:05:14 +0100 Subject: new colorschemes --- ratpoison/window_menu | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ratpoison/window_menu') diff --git a/ratpoison/window_menu b/ratpoison/window_menu index 46b4bd3..416ee12 100755 --- a/ratpoison/window_menu +++ b/ratpoison/window_menu @@ -8,27 +8,29 @@ order=sequential ratmenu="~/.ratpoison/ratmenu" +source ~/.colors + # Yes, bash is really necessary, because it's version of printf makes this # script possible. Regular bourne shell printf does NOT. window_index_str=$(ratpoison -c "info" | sed 's/^.*\([0-9]\)(.*$/\1/') if [ "$window_index_str" = "No window." ]; then group_index=$($HOME/.ratpoison/workspace current) - $ratmenu -style dreary -fg "#657b83" -bg "#eee8d5" "No windows in group $group_index" + $ratmenu -style dreary -fg \"$COLOR0\" -bg \"$COLOR0\" "No windows in group $group_index" /bin/true else ratpoison -c "echo $window_index_str" echo "$window_index_str">/tmp/log window_index=$[ $window_index_str + 1 ] if [ $order = sequential ]; then - ( printf "$ratmenu -style dreary -fg '#657b83' -bg '#eee8d5' -io $window_index \ + ( printf "$ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io $window_index \ "; ratpoison -c "windows %n %n %t" | sort -n | while read w x z; do a=$(printf "%3q" $x); b="ratpoison -c \"select $x\""; printf " %q\\ %q %q" "$a" "$z" "$b"; done; echo \;) | sh elif [ $order = last ]; then - ( printf "$ratmenu -style dreary -fg '#657b83' -bg '#eee8d5' -io $window_index \ + ( printf "$ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io $window_index \ "; ratpoison -c "windows %l %n %t" | sort -rn | while read w x z; do a=$(printf "%3q" $x); b="ratpoison -c \"select $x\""; -- cgit v1.2.3-54-g00ecf