summaryrefslogtreecommitdiffstats
path: root/bin/kill_tag
diff options
context:
space:
mode:
Diffstat (limited to 'bin/kill_tag')
-rwxr-xr-xbin/kill_tag10
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