Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Changes to xrandr completion
- X-seq: zsh-workers 30970
- From: gi1242+zsh@xxxxxxxxx
- To: Kovacsics Robert <kovirobi@xxxxxxxxx>
- Subject: Re: Changes to xrandr completion
- Date: Tue, 15 Jan 2013 13:50:01 -0500
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20130105191445.6e9bff3d@KR2-ARCH>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: gi1242+zsh@xxxxxxxxx, Kovacsics Robert <kovirobi@xxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20130105191445.6e9bff3d@KR2-ARCH>
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