From ad66564deade38d7b2a8de6a287a6079ae41bf0e Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Wed, 24 Dec 2025 21:38:01 +0000 Subject: [PATCH] wip: more progress --- hosts/doloro/home.nix | 5 ++++- modules/hyprland/home.nix | 3 ++- modules/hyprland/settings.nix | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/doloro/home.nix b/hosts/doloro/home.nix index 5141521..87fea83 100644 --- a/hosts/doloro/home.nix +++ b/hosts/doloro/home.nix @@ -23,7 +23,10 @@ # ../../overlays.nix # ]; modules = { - Hyprland.enable = true; + Hyprland = { + enable = true; + suspend-on-hibernate = true; + }; quickshell.enable = true; # chromium.enable = true; wivrn.enable = true; diff --git a/modules/hyprland/home.nix b/modules/hyprland/home.nix index 67f33a8..d618a2c 100644 --- a/modules/hyprland/home.nix +++ b/modules/hyprland/home.nix @@ -28,6 +28,7 @@ in ]; options.modules.Hyprland = { enable = lib.mkEnableOption "Hyprland"; + suspend-on-hibernate = lib.mkEnableOption "soh"; }; # TODO, split this into its own module; config = lib.mkIf cfg.enable { @@ -59,7 +60,7 @@ in }; }; }; - systemd.user.services."hyprland_suspend" = { + systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate { Unit = { Description = "Suspend hyprland"; Before = [ diff --git a/modules/hyprland/settings.nix b/modules/hyprland/settings.nix index f56d93c..cc1db70 100644 --- a/modules/hyprland/settings.nix +++ b/modules/hyprland/settings.nix @@ -134,9 +134,6 @@ "$mainMod, mouse:272, movewindow" "$mainMod, mouse:273, resizewindow" ]; - workspace = [ - "name:2, monitor:DP-3" - ]; windowrule = [ "match:class .*, suppress_event maximize" "match:class ^(gamescope)$, workspace 5"