From 1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a Mon Sep 17 00:00:00 2001 From: shmibs Date: Tue, 4 Mar 2014 22:03:13 -0700 Subject: added dmenu-based switcher also started using mpv --- .config/herbstluftwm/switcher.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .config/herbstluftwm/switcher.sh (limited to '.config/herbstluftwm/switcher.sh') diff --git a/.config/herbstluftwm/switcher.sh b/.config/herbstluftwm/switcher.sh new file mode 100755 index 0000000..9bf344c --- /dev/null +++ b/.config/herbstluftwm/switcher.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +IFS=$'\r\n' clients=($(wmctrl -l | cut -c -10)) +number=$(wmctrl -l | cut -c 20- | nl -w 2 -s ") " | dmenu -i -h 16 -nb $1 -nf $2 -sb $3 -sf $4 -p "Select:" -l 40 | grep -oE '[0-9]' | head -1) +if [ $number ]; then + herbstclient jumpto ${clients[$(expr $number - 1)]} +fi -- cgit v1.2.3