Add quick action

This commit is contained in:
Tobias Reisinger 2023-11-27 20:24:38 +01:00
parent ad58ab9bdd
commit 1f6d175a86
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 67 additions and 94 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env sh
actions="move
actions="quick
move
fetch-client
fetch-channel
away
@ -37,6 +38,13 @@ _ts_control_fetch() {
}
case $action in
"quick")
action=$($DMENU < "$XDG_CONFIG_HOME/ts-control-quick")
if [ -z "$action" ]; then
exit 1
fi
eval "teamspeak-query-lib $action"
;;
"move")
_ts_control_move_self
;;