diff options
author | Tom Willemsen | 2012-01-30 00:34:38 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-30 00:34:38 +0100 |
commit | 3c43c86150e7e58be6f024c8f5d320c3b810fc04 (patch) | |
tree | 262ee47efa69461ee0e58644087ecd1122c5df3e /bin/kill_tag | |
parent | 412b27682dc1552a97bfd32b06cb8994af06666d (diff) | |
download | dotfiles-3c43c86150e7e58be6f024c8f5d320c3b810fc04.tar.gz dotfiles-3c43c86150e7e58be6f024c8f5d320c3b810fc04.zip |
Added some WM functions
Diffstat (limited to 'bin/kill_tag')
-rwxr-xr-x | bin/kill_tag | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/kill_tag b/bin/kill_tag new file mode 100755 index 0000000..79bbf5a --- /dev/null +++ b/bin/kill_tag @@ -0,0 +1,10 @@ +#!/bin/zsh + +TAGS=( $(herbstclient tag_status 0 | tr ":\!.+#" " ") ) +FOO=$(for i in "${TAGS[@]}"; do echo $i; done | dmenu) + +if [[ "${TAGS[@]}" == *"$FOO"* ]]; then + herbstclient merge_tag $FOO +else + notify-send "Unknown tag: $FOO" +fi |