diff --git a/apps/hyprland/hypr/exec.nix b/apps/hyprland/hypr/exec.nix index a8418ad..ae5ab85 100644 --- a/apps/hyprland/hypr/exec.nix +++ b/apps/hyprland/hypr/exec.nix @@ -15,6 +15,7 @@ # essentials "hyprpm reload -n" "systemctl --user start hyprpolkitagent" + "systemctl --user start swayosd" "hyprsunset -t 4500" # TODO: must be optional ]; }; diff --git a/apps/swayosd/default.nix b/apps/swayosd/default.nix index eff65ca..a25a7b5 100644 --- a/apps/swayosd/default.nix +++ b/apps/swayosd/default.nix @@ -10,11 +10,14 @@ Unit = { StartLimitBurst = lib.mkForce 5; StartLimitIntervalSec = lib.mkForce 30; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; }; Service = { Restart = lib.mkForce "on-failure"; - RestartSec = lib.mkForce "100ms"; + RestartSec = lib.mkForce "1s"; }; + Install.WantedBy = [ "graphical-session.target" ]; }; wayland.windowManager.hyprland.settings = {