📺 Replaced DP-1 montior, uncommented turn off screen code

This commit is contained in:
Martin Berg Alstad 2025-01-17 22:34:22 +01:00
parent 1f06944f93
commit 0bfa938db3
Signed by: martials
GPG Key ID: 706F53DD087A91DE
3 changed files with 10 additions and 10 deletions

View File

@ -4,6 +4,6 @@
./nixvim
./zed.nix
];
# TODO set Walyland vmOptions in Jetbrains products, Requires current installed version
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path
# -Dawt.toolkit.name=WLToolKit
}

View File

@ -1,7 +1,7 @@
let
# Time in seconds
lockAfter = 1200;
#screenOffAfter = 1500;
screenOffAfter = 1500;
suspendAfter = 7200;
in
{
@ -20,12 +20,12 @@ in
timeout = lockAfter;
on-timeout = "loginctl lock-session";
}
# Turn off screens TODO still buggy on DP-1
# {
# timeout = screenOffAfter;
# on-timeout = "hyprctl dispatch dpms off";
# on-resume = "hyprctl dispatch dpms on";
# }
# Turn off screens
{
timeout = screenOffAfter;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
# Suspend
{
timeout = suspendAfter;

View File

@ -7,8 +7,8 @@ in
{
wayland.windowManager.hyprland.settings = {
monitor = [
"DP-1, 1920x1080@144, 0x0, 1"
"DP-3, 3840x2160@60, 1920x0, 1.5, transform, 1"
"DP-1, 3440x1440@175, 0x0, 1"
"DP-3, 3840x2160@60, 3440x0, 1.5, transform, 1"
];
# Autostart