From 8a76f3d75db290302f94ea732e01a9afd25c2c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 6 Aug 2023 09:04:06 +0300 Subject: [PATCH] feat(xrandr): comma separated `--setmonitor` third argument --- completions/xrandr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/completions/xrandr b/completions/xrandr index 2b6da2ceb08..9e4d3d5e585 100644 --- a/completions/xrandr +++ b/completions/xrandr @@ -149,9 +149,9 @@ _comp_cmd_xrandr() if ((cword >= 3)); then case "${words[cword - 3]}" in --setmonitor) - _comp_cmd_xrandr__compgen_outputs "$1" - _comp_compgen -a -- -W "none" - # TODO: the third argument is actually a comma-separated list + _comp_compgen -c "${cur##*,}" -i xrandr outputs "$1" + _comp_compgen -ac "${cur##*,}" -- -W "none" + _comp_delimited , -W '"${COMPREPLY[@]}"' return ;; esac