blob: e7ed342621502f278644d63fc9c0915a4f0821d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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 -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[$number]}
fi
|