diff options
author | Tom Willemse | 2016-10-19 11:46:20 +0200 |
---|---|---|
committer | Tom Willemse | 2016-10-19 11:46:20 +0200 |
commit | 83dff80d0b143f116a2493df9c4c77729fae51ee (patch) | |
tree | 2cfe9a75fb58a8abcdc24d16a1c7437d6ff34585 /mowedline/.config/herbstluftwm/autostart.d | |
parent | 10dc203aceea42665fb554dfb0ca75b1d6bb3acf (diff) | |
download | new-dotfiles-83dff80d0b143f116a2493df9c4c77729fae51ee.tar.gz new-dotfiles-83dff80d0b143f116a2493df9c4c77729fae51ee.zip |
Add mowedline config
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 & |