legacy-dotfiles/bin/kill_tag

11 lines
240 B
Text
Raw Normal View History

2012-01-30 00:34:38 +01:00
#!/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