10 lines
240 B
Bash
Executable file
10 lines
240 B
Bash
Executable file
#!/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
|