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
14
ts-control
14
ts-control
|
@ -9,7 +9,13 @@ not away
|
||||||
back
|
back
|
||||||
message
|
message
|
||||||
message-user"
|
message-user"
|
||||||
action=$(echo "$actions" | $DMENU)
|
|
||||||
|
action="$1"
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
shift
|
||||||
|
else
|
||||||
|
action=$(echo "$actions" | $DMENU)
|
||||||
|
fi
|
||||||
|
|
||||||
_ts_control_get_entity() {
|
_ts_control_get_entity() {
|
||||||
entity=$(teamspeak-query-lib "$1s" | $DMENU)
|
entity=$(teamspeak-query-lib "$1s" | $DMENU)
|
||||||
|
@ -66,7 +72,11 @@ case $action in
|
||||||
;;
|
;;
|
||||||
"back")
|
"back")
|
||||||
teamspeak-query-lib update --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
|
teamspeak-query-lib update --microphone=true --speakers=true
|
||||||
;;
|
;;
|
||||||
"message")
|
"message")
|
||||||
|
|
Loading…
Reference in a new issue