teamspeak-query-lib/control_src/ask_command.sh

20 lines
267 B
Bash

actions=(
"quick"
"move"
"fetch-client"
"fetch-channel"
"migrate"
"away"
"not-away"
"back"
"message"
"message-client"
"events"
"events-ntfy"
)
action=$(echo "${actions[@]}" | tr ' ' '\n' | $DMENU)
if [ -n "$action" ]; then
$0 "$action"
fi