#autorandr is a utility program that lets you save and select various display configurations. E.g. a *mobile mode* where you use the laptop's built-in monitor and a *docked mode* where you use an external monitor.

autorandr-launcher is a little daemon which listens for #X11 RandR events and automatically applies the appropriate autorandr display profile when a change is detected (e.g. when a monitor is plugged in or unplugged).

Here's a tiny little PR to add an autorandr-launcher service to #Guix:

https://codeberg.org/guix/guix/pulls/9036

In case any good soul wants to review it... :)

home: services: Add home-autorandr-launcher-service-type.

* gnu/home/services/desktop.scm (home-autorandr-launcher-configuration) (home-autorandr-launcher-service-type): New variables; (home-autorandr-launcher-shepherd-service): New procedure; * doc/guix.texi (Desktop Services): Document it. Change-Id: I31880ded78647bc66d8fd7fd18136f2cb315b67b ...

Codeberg.org
I have finished my #DIY #dockingstation for my laptop. There's cable management left to fiddle with and hang it on the wall. But overall it's done.
I can slide my laptop in, and it will connect to the external display, usb-hub, wireless keyboard, mouse and external audio interface. And to power of course.
I used #autorandr to switch the display automatically when I slide the laptop in.
#workshop
After a year messing with #xrandr I recently discovered #autorandr. It seems to make easy transition between monitor setups very easy.