Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/waybar: restart service #77392
Motivation for this change
Waybar sometimes fails, especially when sway is being started. This should circumvent some headaches.
Restart waybar automatically after 5 seconds.
I haven't identified a single root cause yet. But I observe my waybar sometimes restarting when I change display configuration via kanshi and when sway starts up.
I also think it is best practice to have this kind of service restart automatically. There is no good reason to stop waybar while sway is running and if people still want it for some reason, they can override it.
I would remove the
I think a
@FlorianFranzen Thanks for the hint. I discovered that my waybar doesn't come up when I restart
That's not something I observed at least. Anyway I think its safer atm to restart it more often than less often.