zsh-workers
 help / color / mirror / code / Atom feed
From: gi1242+zsh@gmail.com
To: Kovacsics Robert <kovirobi@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Changes to xrandr completion
Date: Tue, 15 Jan 2013 13:50:01 -0500	[thread overview]
Message-ID: <20130115185001.GM26369@andrew.cmu.edu> (raw)
In-Reply-To: <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.


  parent reply	other threads:[~2013-01-15 18:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05 19:14 Kovacsics Robert
2013-01-05 20:15 ` Christian Neukirchen
2013-01-15 18:50 ` gi1242+zsh [this message]
2013-01-18 11:26   ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130115185001.GM26369@andrew.cmu.edu \
    --to=gi1242+zsh@gmail.com \
    --cc=kovirobi@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).