Monday, October 30, 2023

[new] x11/srandrd 0.6.3 - the missing hotplug daemon for X outputs

Hello,

I was looking for a solution to invoke autorandr when a monitor
gets attached/detached. Unfortunately this emits no event that our
hotplugd(8) can catch.

Today I stumbled over srandrd, and it's solving this issue in a nice and
clean way.

$ cat pkg/DESCR
-----
srandrd is a tool that executes a command on xrandr output change
events, i.e. if a monitor is plugged or unplugged. By default srandrd
forks to background and exits if the xserver exits.
-----

You can drop "srandrd some_script.sh" into .xsession and it will run this
script when X output changes happen.

Inside the script, you have variables available to filter and react to
specific events. How that works is described in srandrd(1).

Comment/OK for import?

Best Regards,
Stefan

No comments:

Post a Comment