diff --git a/hosts/frues-pc/default.nix b/hosts/frues-pc/default.nix index 7c3a17b..5bf44fb 100644 --- a/hosts/frues-pc/default.nix +++ b/hosts/frues-pc/default.nix @@ -1,8 +1,4 @@ -{ - pkgs, - username, - ... -}: { +{pkgs, ...}: { imports = [ ./hardware-configuration.nix ./../../modules/core @@ -30,9 +26,4 @@ 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/config.nix b/modules/home/hyprland/config.nix index f1f107e..f60e804 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 + } + "; }; } diff --git a/modules/home/hyprland/hypridle.nix b/modules/home/hyprland/hypridle.nix index be2b0c1..ad34a83 100644 --- a/modules/home/hyprland/hypridle.nix +++ b/modules/home/hyprland/hypridle.nix @@ -25,14 +25,19 @@ 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 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. - } - ''; + 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. + } + '' + ); } diff --git a/modules/home/packages.nix b/modules/home/packages.nix index d6be57a..65ca72c 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -39,7 +39,6 @@ orca-slicer swappy # tdf # cli pdf viewer - speedcrunch thunderbird todo # cli todo list toipe # typing test in the terminal