diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2014-12-05 11:59:55 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2014-12-05 11:59:55 +0200 |
| commit | 2dc2feacf35cfebade39b2e2797e02ac6d84c4c4 (patch) | |
| tree | fb91f5b3e1bda2479686c2344bbff28a21af4d28 /ratws | |
| parent | efd9525d83d25ae2cd3c308e4a6ca25fc8f5aeb1 (diff) | |
Tweaks and ratpoison window switcher
Diffstat (limited to 'ratws')
| -rwxr-xr-x | ratws | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/usr/bin/env dash + +font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" +screen=$(ratpoison -c sdump | tr ',' '\n' | grep '1$') +width=$(echo $screen | cut -d ' ' -f 4) +height=$(echo $screen | cut -d ' ' -f 5) +s=$(echo $screen | cut -d ' ' -f 1) +w=$(($width/3)) +h=$(($height/3)) + +alias dm="dmenu -l 16 -s $s -x $w -y $h -w $w -p \"Select >\" -sb '#0B0' -sf black -nb '#000' -fn $font -i" + +sel=$(ratpoison -c windows | dm | cut -d ' ' -f 1) +[ ! "$sel" = "" ] && ratpoison -c "select $sel" || true |
