blob: 7a679bf3cfa16d5cabc052e9d1b95d23b7d47988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env zsh
if ! whence hc; then
function hc() { herbstclient "$@"; }
fi
# Keep my taglist widget up-to-date in mowedline. Quit if the "reload"
# hook is emitted because it will be restarted by this configuration.
while :; do
mowedline-client update taglist "$(hc tag_status)" 2>/dev/null
read -r event _ < <(hc --wait 'tag_changed|reload')
[[ "$event" == "reload" ]] && break
done &
|