You can look on screenful[1]. It is using UDEV events and awesome-client to detect (dis)connection of external monitor.
[1] https://github.com/dluksza/screenful/ On Tue, May 27, 2014 at 11:33 AM, Stefan Hellmann <[email protected]> wrote: > On Tue, May 27, 2014 at 12:02:43AM +0200, Alfredo Palhares wrote: >> >> I would like to know the same, this can so easly apply when i connect an >> external screen on my laptop. >> >> >> -- >> Regards, >> Alfredo Palhares >> >> -- >> To unsubscribe, send mail to [email protected]. > > > Why don't use udev? > > Something like: > > SUBSYSTEM=="drm", ACTION=="change", RUN+="/bin/bash /usr/bin/toggle-hdmi" > > > -- > Mit freundlichen Grüßen > > Stefan Hellmann > > [email protected] > http://www.pcspinnt.de -- Best regards GSM: +49 017 445 41235 Blog: http://luksza.org http://javablog.pl LinkedIn: http://linkedin.com/in/dariuszluksza -- To unsubscribe, send mail to [email protected].
