hdr baby
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 704 KiB |
@@ -29,14 +29,48 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor = lib.mkMerge [
|
#monitor = lib.mkMerge [
|
||||||
(lib.mkIf (systemName == "laptop") [ "eDP-1,1920x1080@59.99700,0x0,1" ])
|
# (lib.mkIf (systemName == "laptop") [ "eDP-1,1920x1080@59.99700,0x0,1" ])
|
||||||
(lib.mkIf (systemName == "pc") [
|
# (lib.mkIf (systemName == "pc") [
|
||||||
"HDMI-A-2,1920x1080@60,0x0,1"
|
# "DP-2,2560x1440@144,0x0,1"
|
||||||
"DP-1,2560x1440@144,1920x0,1"
|
# "DP-1,2560x1440@239.97,2569x0,1"
|
||||||
#"DP-1,2560x1440@144,1920x0,1,bitdepth,10,cm,hdr"
|
# #"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.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
exec-once = [
|
exec-once = [
|
||||||
@@ -96,6 +130,10 @@ in
|
|||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#render = {
|
||||||
|
# cm_fs_passthrough = 1;
|
||||||
|
#};
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 10;
|
rounding = 10;
|
||||||
|
|||||||
@@ -18,23 +18,26 @@
|
|||||||
before_sleep_cmd = "loginctl lock-session && sleep 1.5";
|
before_sleep_cmd = "loginctl lock-session && sleep 1.5";
|
||||||
ignore_dbus_inhibit = false;
|
ignore_dbus_inhibit = false;
|
||||||
};
|
};
|
||||||
listener =
|
listener = [
|
||||||
[
|
{
|
||||||
{
|
timeout = 600;
|
||||||
timeout = 600;
|
on-timeout = "loginctl lock-session";
|
||||||
on-timeout = "loginctl lock-session";
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
++ lib.optional (systemName == "laptop") {
|
|
||||||
timeout = 700;
|
|
||||||
on-timeout = "light -S 0";
|
|
||||||
on-resume = "light -I";
|
|
||||||
}
|
}
|
||||||
++ lib.optional (systemName == "laptop") {
|
]
|
||||||
timeout = 800;
|
++ lib.optional (systemName == "laptop") {
|
||||||
on-timeout = "systemctl suspend-then-hibernate";
|
timeout = 700;
|
||||||
};
|
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
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user