Re: better way to detect new display

2017-03-01 Thread Ted Unangst
David Coppa wrote: > On Wed, Mar 1, 2017 at 11:49 AM, Raf Czlonka wrote: > > A while ago, Keith Packard wrote small display configuration tool > > called x-on-resize[0] which might be exactly what you are looking > > for but I have no idea how much effort would it be to get it > > working/ported o

Re: better way to detect new display

2017-03-01 Thread Scott Bonds
Thank you for the suggestion. x-on-resize compiles and runs fine. It notices resizes, which I suspect I'll find useful down the road :) But, unfortunately, it doesn't notice when I plug/unplug my VGA monitor. I think I'll fall back to Plan B: map the F7 key to trigger a script which will run x

Re: better way to detect new display

2017-03-01 Thread Scott Bonds
On 03/01, Marcus MERIGHI wrote: sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET): I'm polling using xrandr to check whether a new display was plugged in, so I can run a script to switch to it, i.e. plug in an external VGA monitor and it lights up automatically, unplug it and my laptop a

Re: better way to detect new display

2017-03-01 Thread David Coppa
On Wed, Mar 1, 2017 at 11:49 AM, Raf Czlonka wrote: > On Wed, Mar 01, 2017 at 10:14:39AM GMT, Marcus MERIGHI wrote: >> sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET): >> > I'm polling using xrandr to check whether a new display was plugged >> > in, so I can run a script to switch to it,

Re: better way to detect new display

2017-03-01 Thread Raf Czlonka
On Wed, Mar 01, 2017 at 10:14:39AM GMT, Marcus MERIGHI wrote: > sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET): > > I'm polling using xrandr to check whether a new display was plugged > > in, so I can run a script to switch to it, i.e. plug in an external > > VGA monitor and it lights up

Re: better way to detect new display

2017-03-01 Thread Kamil CholewiƄski
On Wed, 01 Mar 2017, Marcus MERIGHI wrote: > sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET): >> I'm polling using xrandr to check whether a new display was plugged >> in, so I can run a script to switch to it, i.e. plug in an external >> VGA monitor and it lights up automatically, unplu

Re: better way to detect new display

2017-03-01 Thread Marcus MERIGHI
sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET): > I'm polling using xrandr to check whether a new display was plugged > in, so I can run a script to switch to it, i.e. plug in an external > VGA monitor and it lights up automatically, unplug it and my laptop > automatically switches back