diff options
Diffstat (limited to 'mowedline/.config/herbstluftwm/autostart.d')
-rw-r--r-- | mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh b/mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh new file mode 100644 index 0000000..7a679bf --- /dev/null +++ b/mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh @@ -0,0 +1,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 & |