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:
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user