mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
waybar: fix systemd service
Fix xdg-portal issue where it'd take 25s for a GTK app to start
This commit is contained in:
parent
614a5b55bf
commit
19fc0917c0
2 changed files with 6 additions and 8 deletions
|
@ -370,14 +370,13 @@ in {
|
||||||
"Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
"Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
||||||
Documentation = "https://github.com/Alexays/Waybar/wiki";
|
Documentation = "https://github.com/Alexays/Waybar/wiki";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Type = "dbus";
|
|
||||||
BusName = "fr.arouillard.waybar";
|
|
||||||
ExecStart = "${cfg.package}/bin/waybar";
|
ExecStart = "${cfg.package}/bin/waybar";
|
||||||
Restart = "always";
|
ExecReload = "kill -SIGUSR2 $MAINPID";
|
||||||
RestartSec = "1sec";
|
Restart = "on-failure";
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,13 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
BusName=fr.arouillard.waybar
|
ExecReload=kill -SIGUSR2 $MAINPID
|
||||||
ExecStart=@waybar@/bin/waybar
|
ExecStart=@waybar@/bin/waybar
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
RestartSec=1sec
|
|
||||||
Type=dbus
|
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
|
After=graphical-session.target
|
||||||
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
||||||
Documentation=https://github.com/Alexays/Waybar/wiki
|
Documentation=https://github.com/Alexays/Waybar/wiki
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
|
|
Loading…
Reference in a new issue