aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/workspace_menu
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-11-23 11:08:21 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-11-23 11:08:21 +0100
commit6d6e0462eb2dd1d770653f5e22582e3571c63c8f (patch)
tree897c90f8ef0290fe974a9381eeec964545607904 /ratpoison/workspace_menu
parent8dee1d67a9e2caa3a3286b13c86880c0757fcd16 (diff)
downloaddotfiles-6d6e0462eb2dd1d770653f5e22582e3571c63c8f.tar.gz
dotfiles-6d6e0462eb2dd1d770653f5e22582e3571c63c8f.tar.bz2
dotfiles-6d6e0462eb2dd1d770653f5e22582e3571c63c8f.zip
big ratpoison update
Diffstat (limited to 'ratpoison/workspace_menu')
-rwxr-xr-xratpoison/workspace_menu10
1 files changed, 8 insertions, 2 deletions
diff --git a/ratpoison/workspace_menu b/ratpoison/workspace_menu
index 020f887..6ffcb14 100755
--- a/ratpoison/workspace_menu
+++ b/ratpoison/workspace_menu
@@ -7,12 +7,18 @@
# script possible. Regular bourne shell printf does NOT.
workspace_command="/usr/bin/rpws"
+ratmenu="~/.ratpoison/ratmenu"
-( printf "ratmenu -style dreary -fg '#657b83' -bg '#eee8d5' -io $[ $($workspace_command current) + 1 ]";
+( printf "$ratmenu -style dreary -fg '#657b83' -bg '#eee8d5' -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=$(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