Add parameters to ts-control (only some actions)
All checks were successful
/ build-artifacts (push) Successful in 42s
All checks were successful
/ build-artifacts (push) Successful in 42s
This commit is contained in:
parent
bb90c3af4c
commit
a0f2b61734
1 changed files with 12 additions and 2 deletions
12
ts-control
12
ts-control
|
@ -9,7 +9,13 @@ not away
|
|||
back
|
||||
message
|
||||
message-user"
|
||||
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue