[pulseaudio-discuss] [PATCH 2/3] zsh-completion: Add support for the new pactl commands.

poljar (Damir Jelić) poljarinho at gmail.com
Sun Mar 17 14:06:40 PDT 2013


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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell-completion/pulseaudio-zsh-completion.zsh b/shell-completion/pulseaudio-zsh-completion.zsh
index f9002ef..4a85956 100644
--- a/shell-completion/pulseaudio-zsh-completion.zsh
+++ b/shell-completion/pulseaudio-zsh-completion.zsh
@@ -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;;
-- 
1.8.2



More information about the pulseaudio-discuss mailing list