diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-04-12 13:04:12 +0200 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-04-12 13:04:12 +0200 |
commit | 269e617fea39658233db38ad503030c4fe040e80 (patch) | |
tree | 6a0287e6e892d5a673b6a60d1da9b013b2257a75 /ratpoison/window_menu | |
parent | c955393cbd6e135fe351876f28993290df61fdfa (diff) | |
download | dotfiles-269e617fea39658233db38ad503030c4fe040e80.tar.gz dotfiles-269e617fea39658233db38ad503030c4fe040e80.tar.bz2 dotfiles-269e617fea39658233db38ad503030c4fe040e80.zip |
Spring cleanup!
Diffstat (limited to 'ratpoison/window_menu')
-rwxr-xr-x | ratpoison/window_menu | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ratpoison/window_menu b/ratpoison/window_menu deleted file mode 100755 index 416ee12..0000000 --- a/ratpoison/window_menu +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -# Lets you switch between all windows in a way that minimizes keystrokes. - -# Two ways to order: -# - If order=last, the windows are listed in the order that you last visited them in. -# - If order=sequential, the windows are listed in number order. -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 \"$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 \"$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 \"$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\""; - printf " %q\\ %q %q" "$a" "$z" "$b"; - done; echo \;) | sh - fi -fi |