fix(swayosd): added auto-restart functionality
This commit is contained in:
@@ -1,10 +1,23 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
services.swayosd.enable = true;
|
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 = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
|
||||||
"uwsm app -- swayosd-server"
|
|
||||||
];
|
|
||||||
bindel = [
|
bindel = [
|
||||||
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
||||||
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
||||||
|
|||||||
Reference in New Issue
Block a user