]> code.delx.au - pulseaudio/commitdiff
zsh-completion: Add support for the new pactl commands.
authorpoljar (Damir Jelić) <poljarinho@gmail.com>
Sun, 17 Mar 2013 21:06:40 +0000 (22:06 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Mar 2013 19:25:59 +0000 (21:25 +0200)
This adds support for set-(sink|source)-default completion and adds
toggle to the supported arguments for the mute command.

shell-completion/pulseaudio-zsh-completion.zsh

index f9002ef3a529525c93f31868358e94b4f2d60e5d..4a859569f04e5917c52537f598c25d5bbf19fc1a 100644 (file)
@@ -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;;