summaryrefslogtreecommitdiffstats
path: root/bin/kill_tag
blob: 79bbf5afc77fad9f039cd672d46218a2ebaabe41 (plain)
1
2
3
4
5
6
7
8
9
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