Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Changes to xrandr completion



On Sat, Jan 05, 2013 at 07:14:45PM +0000, Kovacsics Robert wrote:

>  # User configurable. TODO -- styles?
> -outputs=(LVDS1 TV1 VGA1)
> -modes=(1280x800 1024x768 800x600 640x480)
> +outputs=($(xrandr|sed -ne 's/^\([^[[:space:]]\+]*\) connected .*$/\1/p'))
> +modes=($(xrandr|sed -ne 's/^[[:space:]]\+\([[:digit:]]\+x[[:digit:]]\+\).*$/\1/p'|sort -nr|uniq))

I'd recommend against this! On some (buggy) systems running xrandr polls
the displays / checks for connected displays, and sometimes blanks the
screen. (It sometimes takes time too).

On nVidia hardware I'm not sure what will happen.

Any chance you would consider an opt-in version by which xrandr is not
invoked, unless the user has an zstyle option set?

GI

-- 
I thought I had a back-up, but she refused to type it in again.



Messages sorted by: Reverse Date, Date, Thread, Author