~fnux/monitor-handler

ref: ab188bf2f3a404ce4a320007d7989c0da02f51c2 monitor-handler/README.md -rw-r--r-- 769 bytes View raw
ab188bf2 — Timothée Floure Fix README extension (= markdown) 1 year, 8 months ago

monitor-handler

I have access (home, work, club room, ...) to various external screen and often plug/unplug them to my laptop. Since I don't use a full Desktop Environment, their configuration is not automagically handled whatever us shipped with Gnome, KDE or similar nice but bloated DE. I figured it would not be to difficult to write a few scripts to handle it myself:

  • monitor-event-listener: simple C program listening for X event. It calls monitor-event-handler with the output name and action (plugged or unplugged) when a monitor event is detected.
  • monitor-event-handler: simple shell script taking the output name and action as arguments and executing preconfigured actions.