From 4e0841d1b03f6765bfd19372a944892c17e6eb56 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 14 Sep 2024 12:28:25 +0200 Subject: [PATCH 1/4] Stop using extraConfig --- modules/home/hyprland/config.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index f60e804..f1f107e 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -292,14 +292,14 @@ "maxsize 1 1,class:^(xwaylandvideobridge)$" "noblur,class:^(xwaylandvideobridge)$" ]; + + monitor = [ + ",preferred,auto,1" + ]; + + xwayland = { + force_zero_scaling = true; + }; }; - - extraConfig = " - monitor=,preferred,auto,1 - - xwayland { - force_zero_scaling = true - } - "; }; } From 7d6f1ee06ce12448538d131a48188f58acdafb9f Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 14 Sep 2024 12:31:42 +0200 Subject: [PATCH 2/4] New monitor!! --- hosts/frues-pc/default.nix | 11 ++++++++++- modules/home/hyprland/hypridle.nix | 23 +++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/hosts/frues-pc/default.nix b/hosts/frues-pc/default.nix index 5bf44fb..7c3a17b 100644 --- a/hosts/frues-pc/default.nix +++ b/hosts/frues-pc/default.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + pkgs, + username, + ... +}: { imports = [ ./hardware-configuration.nix ./../../modules/core @@ -26,4 +30,9 @@ capSysAdmin = true; openFirewall = true; }; + + home-manager.users.${username}.wayland.windowManager.hyprland.settings.monitor = [ + "HDMI-A-1, 1920x1080@60, 0x0, 1" + "DP-1, 2560x1440@165, 1920x0, 1.333333" + ]; } diff --git a/modules/home/hyprland/hypridle.nix b/modules/home/hyprland/hypridle.nix index ad34a83..be2b0c1 100644 --- a/modules/home/hyprland/hypridle.nix +++ b/modules/home/hyprland/hypridle.nix @@ -25,19 +25,14 @@ on-timeout = ckb-next --profile "Off" # turn off keyboard backlight. on-resume = ckb-next --profile "Personal" # turn on keyboard backlight. } - - listener { - timeout = 330 # 5.5min - on-timeout = ddcmonitorctl off # screen off when timeout has passed - on-resume = ddcmonitorctl on # screen on when activity is detected after timeout has fired. - } '' - else '' - listener { - timeout = 330 # 5.5min - 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. - } - '' - ); + else null + ) + + '' + listener { + timeout = 330 # 5.5min + 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. + } + ''; } From 919d5858766e36a706efee6ff09f5b0bd9b45aba Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 14 Sep 2024 12:31:50 +0200 Subject: [PATCH 3/4] Speedcrunch --- modules/home/packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home/packages.nix b/modules/home/packages.nix index 65ca72c..d6be57a 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -39,6 +39,7 @@ orca-slicer swappy # tdf # cli pdf viewer + speedcrunch thunderbird todo # cli todo list toipe # typing test in the terminal From fd7796b42cccbe8b6696d34fee119c7256189e2a Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sun, 15 Sep 2024 18:35:48 +0200 Subject: [PATCH 4/4] Use 75Hz --- hosts/frues-pc/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/frues-pc/default.nix b/hosts/frues-pc/default.nix index 7c3a17b..e2e8e45 100644 --- a/hosts/frues-pc/default.nix +++ b/hosts/frues-pc/default.nix @@ -32,7 +32,7 @@ }; home-manager.users.${username}.wayland.windowManager.hyprland.settings.monitor = [ - "HDMI-A-1, 1920x1080@60, 0x0, 1" + "HDMI-A-1, 1920x1080@75, 0x0, 1" "DP-1, 2560x1440@165, 1920x0, 1.333333" ]; }