mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
zsh-completion: Add support for the new pactl commands.
This adds support for set-(sink|source)-default completion and adds toggle to the supported arguments for the mute command.
This commit is contained in:
parent
993e756e13
commit
d127e801dc
1 changed files with 3 additions and 1 deletions
|
|
@ -257,6 +257,8 @@ _pactl_completion() {
|
|||
'suspend-sink: suspend or resume a sink'
|
||||
'suspend-source: suspend or resume a source'
|
||||
'set-card-profile: set a card profile:cards:_cards'
|
||||
'set-sink-default: set the default sink'
|
||||
'set-source-default: set the default source'
|
||||
'set-sink-port: set the sink port of a sink'
|
||||
'set-source-port: set the source port of a source'
|
||||
'set-port-latency-offset: set a latency offset on a port'
|
||||
|
|
@ -313,7 +315,7 @@ _pactl_completion() {
|
|||
set-card-profile) _profiles;;
|
||||
set-(sink|source)-port) _ports;;
|
||||
set-port-latency-offset) _ports;;
|
||||
set-*-mute) compadd true false;;
|
||||
set-*-mute) compadd true false toggle;;
|
||||
suspend-*) compadd true false;;
|
||||
list) compadd short;;
|
||||
move-*) _devices;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue