Add parameters to ts-control (only some actions)
All checks were successful
/ build-artifacts (push) Successful in 42s

This commit is contained in:
Tobias Reisinger 2024-02-16 15:55:56 +01:00
parent bb90c3af4c
commit a0f2b61734
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -9,7 +9,13 @@ not away
back
message
message-user"
action=$(echo "$actions" | $DMENU)
action="$1"
if [ -n "$1" ]; then
shift
else
action=$(echo "$actions" | $DMENU)
fi
_ts_control_get_entity() {
entity=$(teamspeak-query-lib "$1s" | $DMENU)
@ -66,7 +72,11 @@ case $action in
;;
"back")
teamspeak-query-lib update --back
_ts_control_move_self
if [ -n "$1" ]; then
teamspeak-query-lib move "$1"
else
_ts_control_move_self "$1"
fi
teamspeak-query-lib update --microphone=true --speakers=true
;;
"message")