From 5768d5dda94bad53ae007e0268cffe2c71e16fcc Mon Sep 17 00:00:00 2001 From: shmibs Date: Fri, 4 Jul 2014 09:50:30 -0700 Subject: fixed dmenu scripts i'm not sure how they ended up broken... --- .config/herbstluftwm/switcher.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/herbstluftwm/switcher.sh') 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 -- cgit v1.2.3