fix(swayosd): added auto-restart functionality

This commit is contained in:
kenji
2026-01-11 13:59:21 -06:00
parent 9fc1763073
commit 0940fd31d7
+17 -4
View File
@@ -1,10 +1,23 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
services.swayosd.enable = true;
# Auto-restart swayosd on crash
systemd.user.services.swayosd = {
Unit = {
StartLimitBurst = lib.mkForce 5;
StartLimitIntervalSec = lib.mkForce 30;
};
Service = {
Restart = lib.mkForce "on-failure";
RestartSec = lib.mkForce "100ms";
};
};
wayland.windowManager.hyprland.settings = {
exec-once = [
"uwsm app -- swayosd-server"
];
bindel = [
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"