diff --git a/modules/programs/hyprland/_config.nix b/modules/programs/hyprland/_config.nix index 8978830..c27c59d 100644 --- a/modules/programs/hyprland/_config.nix +++ b/modules/programs/hyprland/_config.nix @@ -111,10 +111,10 @@ in } misc { - # disable_hypr_chan = true vrr = 1 mouse_move_enables_dpms = true key_press_enables_dpms = true + force_default_wallpaper = 0 } # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more diff --git a/modules/programs/hyprland/default.nix b/modules/programs/hyprland/default.nix index 92ddad0..89c19f8 100644 --- a/modules/programs/hyprland/default.nix +++ b/modules/programs/hyprland/default.nix @@ -55,15 +55,10 @@ in }; home-manager.users.moritz = { - - # import home-manager module - imports = [ inputs.hyprland.homeManagerModules.default ]; - # enable home-manager module wayland.windowManager.hyprland = { enable = true; package = hyprland; - recommendedEnvironment = true; extraConfig = import ./_config.nix args; }; @@ -133,7 +128,7 @@ in timeout = 30 * 60; command = "${pkgs.systemd}/bin/systemctl suspend-and-hibernate"; }; - systemdTarget = "hyprland-session.target"; + systemdTarget = "graphical-session.target"; }; systemd.user.services.nextcloud-client.Service = { @@ -142,19 +137,11 @@ in }; }; - # adds pam module for swaylock security.pam.services.swaylock = { }; - # only consider graphical-session.target started when hyprland-sesstion.target is reached - systemd.user.targets.hyprland-session = { - partOf = [ "graphical-session.target" ]; - wantedBy = [ "graphical-session.target" ]; - before = [ "graphical-session.target" ]; - }; - systemd.user.services.xdg-desktop-portal-hyprland = { - after = [ "hyrpland-session.target" ]; + after = [ "hyprland-session.target" ]; requiredBy = [ "xdg-desktop-portal.service" ]; };