diff --git a/assets/Wallpapers/125.jpg b/assets/Wallpapers/125.jpg index 2f07a9e..85b5d71 100755 Binary files a/assets/Wallpapers/125.jpg and b/assets/Wallpapers/125.jpg differ diff --git a/dots/hyprland.nix b/dots/hyprland.nix index 42ecf6d..837e82d 100755 --- a/dots/hyprland.nix +++ b/dots/hyprland.nix @@ -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; diff --git a/dots/hyprlock.nix b/dots/hyprlock.nix index ad5ffaa..3897e53 100755 --- a/dots/hyprlock.nix +++ b/dots/hyprlock.nix @@ -18,23 +18,26 @@ before_sleep_cmd = "loginctl lock-session && sleep 1.5"; ignore_dbus_inhibit = false; }; - listener = - [ - { - timeout = 600; - on-timeout = "loginctl lock-session"; - } - - ] - ++ lib.optional (systemName == "laptop") { - timeout = 700; - on-timeout = "light -S 0"; - on-resume = "light -I"; + listener = [ + { + timeout = 600; + on-timeout = "loginctl lock-session"; } - ++ lib.optional (systemName == "laptop") { - timeout = 800; - on-timeout = "systemctl suspend-then-hibernate"; - }; + ] + ++ lib.optional (systemName == "laptop") { + 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 + }; }; }; };