#!/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 &