fix(swayosd): ensure swayosd starts reliably

- Add explicit 'systemctl --user start swayosd' to Hyprland exec-once
- Harden systemd service definition with proper dependencies and targets
This commit is contained in:
kenji
2026-01-15 15:52:35 -06:00
parent 3dc170984b
commit 9ff47e94b2
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@
# essentials # essentials
"hyprpm reload -n" "hyprpm reload -n"
"systemctl --user start hyprpolkitagent" "systemctl --user start hyprpolkitagent"
"systemctl --user start swayosd"
"hyprsunset -t 4500" # TODO: must be optional "hyprsunset -t 4500" # TODO: must be optional
]; ];
}; };
+4 -1
View File
@@ -10,11 +10,14 @@
Unit = { Unit = {
StartLimitBurst = lib.mkForce 5; StartLimitBurst = lib.mkForce 5;
StartLimitIntervalSec = lib.mkForce 30; StartLimitIntervalSec = lib.mkForce 30;
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
}; };
Service = { Service = {
Restart = lib.mkForce "on-failure"; Restart = lib.mkForce "on-failure";
RestartSec = lib.mkForce "100ms"; RestartSec = lib.mkForce "1s";
}; };
Install.WantedBy = [ "graphical-session.target" ];
}; };
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {