diff options
author | Tom Willemsen | 2012-01-30 00:55:30 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-30 00:55:30 +0100 |
commit | 79fa706eeb3e2438fdf92ad2a0943202c9c5d7fa (patch) | |
tree | 587e8eaf3668f89a85f523a250702e85d5c1c39d /bin/kill_tag | |
parent | 887ddee93cb5259942b93116611fd1fd2419d983 (diff) | |
parent | 3c43c86150e7e58be6f024c8f5d320c3b810fc04 (diff) | |
download | dotfiles-79fa706eeb3e2438fdf92ad2a0943202c9c5d7fa.tar.gz dotfiles-79fa706eeb3e2438fdf92ad2a0943202c9c5d7fa.zip |
Merge remote-tracking branch 'gitorious/master' into phoenix
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 |