From 71897071134082354e1ddda55c653f3efdef9a3a Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 8 Mar 2025 20:19:28 +0100 Subject: [PATCH] Thor: hypridle reset primary output on wake up --- modules/hm/hyprland.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index a4551a3..582e4c7 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -69,7 +69,7 @@ in { timeout = 300; on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed - on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired. + on-resume = "hyprctl dispatch dpms on;" + (lib.optionalString (hostName == "thor") "xrandr --output DP-1 --primary"); # screen on when activity is detected after timeout has fired. } ]; }; @@ -104,7 +104,6 @@ in exec = (lib.lists.optionals (hostName == "thor") [ "xrandr --output DP-1 --primary" - "xrandr --output DP-3 --primary" ]) ++ [ "noti -t 'Hyprland' -m 'New config loaded\!'" ];