From 05a132fee432fcfc21b3000af8aa05fb5c17111f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 3 Oct 2025 09:39:45 -0700 Subject: pop-os: Add autorandr configuration to automatically switch screens Now when I plug screens in and out it should automatically detect the change. --- oni/home/config/pop-os.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oni/home/config/pop-os.scm b/oni/home/config/pop-os.scm index e177185..37ec867 100644 --- a/oni/home/config/pop-os.scm +++ b/oni/home/config/pop-os.scm @@ -20,6 +20,7 @@ #:select (playerctl)) #:use-module ((gnu packages pulseaudio) #:select (pamixer)) + #:use-module (gnu packages xdisorg) #:use-module ((gnu services) #:select (service)) #:use-module ((guix gexp) @@ -158,7 +159,11 @@ hlwm-run-or-raise shutdown-rofi playerctl - pamixer)) + pamixer + ;; need to have a file + ;; /etc/udev/rules.d/40-monitor-hotplug.rules + ;; ACTION=="change", SUBSYSTEM=="drm", RUN+="/var/guix/profiles/per-user/tomwillemsen/guix-home/profile/bin/autorandr --batch --change --default default" + autorandr)) (services (list home-channels-service home-dunst-default-service home-environment-service -- cgit v1.3-2-g0d8e