diff options
Diffstat (limited to '.config/herbstluftwm/switcher.sh')
-rwxr-xr-x | .config/herbstluftwm/switcher.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/herbstluftwm/switcher.sh b/.config/herbstluftwm/switcher.sh index a19fe6e..e7ed342 100755 --- a/.config/herbstluftwm/switcher.sh +++ b/.config/herbstluftwm/switcher.sh @@ -7,6 +7,8 @@ number=$(wmctrl -l | cut -c 20- | nl -w 2 -s ") " | \ dmenu -fn $efont -i -h $bheight -nb $bg_normal -nf $fg_normal \ -sb $bg_focus -sf $fg_focus -p "Select:" -l 40 | \ grep -oE '[0-9]' | head -1) + +echo ${clients[$number]} if [ $number ]; then - herbstclient jumpto ${clients[$(expr $number - 1)]} + herbstclient jumpto ${clients[$number]} fi |