diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-08-18 01:39:43 +0200 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-08-18 01:39:43 +0200 |
commit | d923956d4866beb5093c89e0c1a4f54a9c37070f (patch) | |
tree | 849dcc217039940b4f41e1e82f595c7a00669d99 /tools/workspace_menu | |
parent | 26a62982eab36ee68608a61306e6fab6447edd8a (diff) | |
download | dotfiles-d923956d4866beb5093c89e0c1a4f54a9c37070f.tar.gz dotfiles-d923956d4866beb5093c89e0c1a4f54a9c37070f.tar.bz2 dotfiles-d923956d4866beb5093c89e0c1a4f54a9c37070f.zip |
major fixes and rearrangement
Diffstat (limited to 'tools/workspace_menu')
-rwxr-xr-x | tools/workspace_menu | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/workspace_menu b/tools/workspace_menu deleted file mode 100755 index 6fb6633..0000000 --- a/tools/workspace_menu +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Lets you switch between all workspaces in a way that minimizes keystrokes. -# The current workspace is selected. - -# Yes, bash is really necessary, because it's version of printf makes this -# script possible. Regular bourne shell printf does NOT. - -workspace_command="/usr/bin/rpws" -ratmenu="~/.tools/ratmenu" - -( printf "$ratmenu -style dreary -fg \"$COLOR11\" -bg \"$COLOR0\" -io $[ $($workspace_command current) + 1 ]"; - ratpoison -c "groups" | while read s; do - n=$(echo $s | sed 's/\([0-9]\+\).*/\1/'); -# w=$(echo $s | sed 's/[0-9]\+.\(.*\)/\1/'); - w=$(ratpoison -c "gselect $(($n-1))" -c "windows %t" -c "gprev") - a=$(printf "%3q %q" $n $w); b="$workspace_command $n"; - if [ $n -ne 0 ];then - printf " %q %q" "$a" "$b"; - else - printf " %q %q" "Go to workspace:" "/bin/true"; - fi - done; echo \;) | sh - |