From 83dff80d0b143f116a2493df9c4c77729fae51ee Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 19 Oct 2016 11:46:20 +0200 Subject: Add mowedline config --- .../.config/herbstluftwm/autostart.d/mowedline-tags.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh (limited to 'mowedline/.config/herbstluftwm/autostart.d/mowedline-tags.sh') 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 & -- cgit v1.2.3-54-g00ecf