Thor: hypridle reset primary output on wake up

This commit is contained in:
Filippo Berto 2025-03-08 20:19:28 +01:00
parent 4ca74d8272
commit 7189707113
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -69,7 +69,7 @@ in
{ {
timeout = 300; timeout = 300;
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed 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") [ exec = (lib.lists.optionals (hostName == "thor") [
"xrandr --output DP-1 --primary" "xrandr --output DP-1 --primary"
"xrandr --output DP-3 --primary"
]) ++ [ ]) ++ [
"noti -t 'Hyprland' -m 'New config loaded\!'" "noti -t 'Hyprland' -m 'New config loaded\!'"
]; ];