blob: 8ac60d11c6165ab3e4f0daffc7e6eb9b0a682e32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/zsh
source ~/.config/init/vars
list=$(wmctrl -l)
IFS=$'\r\n' nums=($(echo $list | cut -d ' ' -f 1))
choice=$(echo $list | cut -d ' ' -f 5- | 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 | \
cut -d ')' -f 1)
if [ $choice ]; then
herbstclient jumpto ${nums[$choice]}
fi
|