It was necessary to get udev involved, and now I've finally gotten around to setting it up. A rough solution in the form of a separate script is available on https://github.com/bkhl/conf/blob/master/Qtile/monitor-hotplug.py
At some point I hope to move this into a Qtile module though, so that my Qtile config can then use the same information to intelligently set up groups and stuff depending on my location. / Björn On Mon, Mar 10, 2014 at 2:06 PM, Tycho Andersen <[email protected]> wrote: > Hi Björn, > > On Mon, Mar 10, 2014 at 08:27:21AM +0100, Björn Lindström wrote: > > Hello, > > > > currently I have some arandr-generated scripts for the different > locations > > I frequently hook up my laptop to an external monitor, with --primary > added > > in order to get the taskbar onto the monitor I want. I do have the usual > > screen_change hook to restart Qtile which handles adapting to the new > > location. What I'm wondering though, is if someone has a suggestion for > how > > to trigger this automatically when a monitor is connected/disconnected. > > I'm not sure X(RandR) gets an event when the new monitor is actually > plugged in (although if there is such a thing, I'd be happy to add > support for it if someone can point me to the docs). I think you might > have to use udev, something like this: > > > http://www.danilopianini.org/index.php?option=com_content&view=article&id=49:automatically-switch-screen-configuration-when-a-new-monitor-is-connected-in-sabayon-linux&catid=6:articles&Itemid=23 > > \t > > -- > You received this message because you are subscribed to the Google Groups > "qtile-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
