Skip to content

Commit

Permalink
feat(xrandr): comma separated --setmonitor third argument
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Aug 13, 2023
1 parent 3c33289 commit 8a76f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions completions/xrandr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a76f3d

Please sign in to comment.