[pulseaudio-discuss] [PATCH 1/3] bash-completion: Add --monitor-stream completion to pacat
poljar (Damir Jelić)
poljarinho at gmail.com
Thu Aug 15 05:08:42 PDT 2013
---
shell-completion/pulseaudio-bash-completion.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/shell-completion/pulseaudio-bash-completion.sh b/shell-completion/pulseaudio-bash-completion.sh
index d5b99db..43f4a2c 100644
--- a/shell-completion/pulseaudio-bash-completion.sh
+++ b/shell-completion/pulseaudio-bash-completion.sh
@@ -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"))
--
1.8.3.4
More information about the pulseaudio-discuss
mailing list