11 lines
240 B
Text
11 lines
240 B
Text
|
#!/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
|