This commit is contained in:
zastian@mrthoddata.com
2025-09-05 16:03:57 +01:00
parent dbf42a7482
commit e73179e113
3 changed files with 65 additions and 24 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 704 KiB

View File

@@ -29,14 +29,48 @@ in
settings = {
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = lib.mkMerge [
(lib.mkIf (systemName == "laptop") [ "eDP-1,1920x1080@59.99700,0x0,1" ])
(lib.mkIf (systemName == "pc") [
"HDMI-A-2,1920x1080@60,0x0,1"
"DP-1,2560x1440@144,1920x0,1"
#"DP-1,2560x1440@144,1920x0,1,bitdepth,10,cm,hdr"
])
];
#monitor = lib.mkMerge [
# (lib.mkIf (systemName == "laptop") [ "eDP-1,1920x1080@59.99700,0x0,1" ])
# (lib.mkIf (systemName == "pc") [
# "DP-2,2560x1440@144,0x0,1"
# "DP-1,2560x1440@239.97,2569x0,1"
# #"DP-1,2560x1440@144,1920x0,1,bitdepth,10,cm,hdr"
# ])
#];
monitorv2 = [
]
++ lib.optional (systemName == "laptop"){
output = "eDP-1";
mode = "1920x1080@59.99700";
scale = 1;
position = "0x0";
}
++ lib.optional (systemName == "pc"){
output = "DP-1";
mode = "2560x1440@239.97";
position = "2560x0"; # Corrected from 2569x0 for seamless alignment
scale = 1;
#supports_wide_color = 1;
bitdepth = 10;
cm = "hdr";
supports_hdr = 1;
sdr_min_luminance = 0; # For true black on OLED
sdr_max_luminance = 255; # Matches typical SDR brightness
min_luminance = 0;
max_luminance = 1000; # HDR peak
max_avg_luminance = 400; # Average frame luminance
sdrbrightness = 1.2; # Slight boost to avoid washed out look
sdrsaturation = 1.1;
#transform = 2; # Uncomment if needed
}
++ lib.optional (systemName == "pc"){
output = "DP-2";
mode = "2560x1440@144";
scale = 1;
position = "0x0";
};
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec-once = [
@@ -96,6 +130,10 @@ in
layout = "dwindle";
};
#render = {
# cm_fs_passthrough = 1;
#};
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration = {
rounding = 10;

View File

@@ -18,22 +18,25 @@
before_sleep_cmd = "loginctl lock-session && sleep 1.5";
ignore_dbus_inhibit = false;
};
listener =
[
listener = [
{
timeout = 600;
on-timeout = "loginctl lock-session";
}
]
++ lib.optional (systemName == "laptop") {
timeout = 700;
on-timeout = "light -S 0";
on-resume = "light -I";
on-timeout = "hyprctl dispatch dpms off"; # Turns off all displays
on-resume = "hyprctl dispatch dpms on"; # Turns displays back on
}
++ lib.optional (systemName == "laptop") {
timeout = 800;
on-timeout = "systemctl suspend-then-hibernate";
}
++ lib.optional (systemName == "pc") {
timeout = 700; # Adjust timeout as needed (in seconds)
on-timeout = "hyprctl dispatch dpms off"; # Turns off all displays
on-resume = "hyprctl dispatch dpms on"; # Turns displays back on
};
};
};