aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-10-03 09:39:45 -0700
committerGravatar Tom Willemse2025-10-03 09:39:45 -0700
commit05a132fee432fcfc21b3000af8aa05fb5c17111f (patch)
tree300a1df0220efe45abd936eeb45923caf5ca4bb7 /oni/home
parente1fad7e9bab4930ad8f3647ac695213631514282 (diff)
downloadnew-dotfiles-05a132fee432fcfc21b3000af8aa05fb5c17111f.tar.gz
new-dotfiles-05a132fee432fcfc21b3000af8aa05fb5c17111f.zip
pop-os: Add autorandr configuration to automatically switch screens
Now when I plug screens in and out it should automatically detect the change.
Diffstat (limited to 'oni/home')
-rw-r--r--oni/home/config/pop-os.scm7
1 files changed, 6 insertions, 1 deletions
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