xrandr: Add bunch of option arg non-completions.
This commit is contained in:
parent
ae42c96758
commit
ba50a54641
@ -6,6 +6,11 @@ _xrandr()
|
|||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
-display|-d|-help|-s|--size|-r|--rate|--refresh|--screen|--fb|--fbmm|\
|
||||||
|
--dpi|--pos|--set|--scale|--transform|--crtc|--panning|--gamma|\
|
||||||
|
--newmode|--rmmode|--addmode|--delmode)
|
||||||
|
return
|
||||||
|
;;
|
||||||
--output|--left-of|--right-of|--above|--below|--same-as)
|
--output|--left-of|--right-of|--above|--below|--same-as)
|
||||||
local outputs=$( xrandr | awk '/connected/ {print $1}' )
|
local outputs=$( xrandr | awk '/connected/ {print $1}' )
|
||||||
COMPREPLY=( $( compgen -W "$outputs" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$outputs" -- "$cur" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user