From 27f005271aba389a45f9bc5b072e4f5af2bffbf2 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 18 Jun 2023 03:03:04 -0400 Subject: [PATCH] Be more specific about what sessions we want --- home-manager/linux/programs/hyprland.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home-manager/linux/programs/hyprland.nix b/home-manager/linux/programs/hyprland.nix index 06bcb62..acef108 100644 --- a/home-manager/linux/programs/hyprland.nix +++ b/home-manager/linux/programs/hyprland.nix @@ -288,7 +288,7 @@ in with lib; { "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; Restart = "on-failure"; }; - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ "hyprland-session.target" ]; }; }; # Setup swayosd as a service systemd.user.services.swayosd = { @@ -301,7 +301,7 @@ in with lib; { ExecStart = "${pkgs.swayosd}/bin/swayosd"; Restart = "on-failure"; }; - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ "hyprland-session.target" ]; }; }; # Shortcut dispatcher xdg.configFile."shortcuts/shortcuts.toml" = { @@ -326,7 +326,7 @@ in with lib; { ExecStart = "${inputs.self.packages.${pkgs.system}.pyprland}/bin/pypr"; Restart = "on-failure"; }; - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ "hyprland-session.target" ]; }; }; # And its config file xdg.configFile."hypr/pyprland.json" = let @@ -383,7 +383,7 @@ in with lib; { ExecStart = "${notif-package}/bin/swaync"; Restart = "on-failure"; }; - Install = { WantedBy = [ "graphical-session.target" ]; }; + Install = { WantedBy = [ "hyprland-session.target" ]; }; }; ######################### ## Swayidle @@ -869,7 +869,7 @@ in with lib; { KillMode = "mixed"; }; - Install = { WantedBy = [ "graphical-session-pre.target" ]; }; + Install = { WantedBy = [ "hyprland-session-pre.target" ]; }; }; ######################### ## EasyEffects