]> code.delx.au - pulseaudio/blobdiff - shell-completion/pulseaudio-bash-completion.sh
bash-completion: Add --monitor-stream completion to pacat
[pulseaudio] / shell-completion / pulseaudio-bash-completion.sh
index d5b99db0d7ad7e635f4b86a34c44ec764c978715..43f4a2c39b8339f15c2f9217ce0e51832965c68a 100644 (file)
@@ -439,7 +439,7 @@ _pacat () {
                 --rate= --format= --channels= --channel-map= --fix-format --fix-rate
                 --fix-channels --no-remix --no-remap --latency= --process-time=
                 --latency-msec= --process-time-msec= --property= --raw --passthrough
-                --file-format= --list-file-formats'
+                --file-format= --list-file-formats --monitor-stream='
 
     _init_completion -n = || return
 
@@ -456,6 +456,12 @@ _pacat () {
             COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))
             ;;
 
+        --monitor-stream=*)
+            cur=${cur#*=}
+            comps=$(__sink_inputs)
+            COMPREPLY=($(compgen -W '${comps[*]}' -- "$cur"))
+            ;;
+
         --rate=*)
             cur=${cur#*=}
             COMPREPLY=($(compgen -W '32000 44100 48000 9600 192000' -- "$cur"))