diff options
Diffstat (limited to '.config/herbstluftwm/switcher.sh')
-rwxr-xr-x | .config/herbstluftwm/switcher.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/herbstluftwm/switcher.sh b/.config/herbstluftwm/switcher.sh index 4d570c2..a19fe6e 100755 --- a/.config/herbstluftwm/switcher.sh +++ b/.config/herbstluftwm/switcher.sh @@ -1,7 +1,12 @@ #!/bin/zsh +source ~/.config/herbstluftwm/config_vars + IFS=$'\r\n' clients=($(wmctrl -l | cut -c -10)) -number=$(wmctrl -l | cut -c 20- | nl -w 2 -s ") " | dmenu -i -h 18 -nb $1 -nf $2 -sb $3 -sf $4 -p "Select:" -l 40 | grep -oE '[0-9]' | head -1) +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) if [ $number ]; then herbstclient jumpto ${clients[$(expr $number - 1)]} fi |