fix(hypr): prevent hyprpaper from failing due to missing socket
This commit is contained in:
parent
eb76e892d7
commit
0251765b74
|
@ -212,12 +212,6 @@ in {
|
||||||
lng = 12.36;
|
lng = 12.36;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# This ensures that the hyprpaper scripts for darkman only run after the
|
|
||||||
# backend for hyprpaper is running
|
|
||||||
systemd.user.services.darkman.Unit.After =
|
|
||||||
if builtins.hasAttr "hyprpaper" config.systemd.user.services
|
|
||||||
then ["hyprpaper.service"]
|
|
||||||
else [];
|
|
||||||
|
|
||||||
services.mpris-proxy.enable = true;
|
services.mpris-proxy.enable = true;
|
||||||
services.pasystray.enable = true;
|
services.pasystray.enable = true;
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
monitors);
|
monitors);
|
||||||
|
|
||||||
mkHyprpaperSwitch = monitor: bg: ''
|
mkHyprpaperSwitch = monitor: bg: ''
|
||||||
|
${lib.warn "Hyprpaper is still a clusterfuck, still using sleep, you dickhead" pkgs.coreutils}/bin/sleep 1
|
||||||
${pkgs.hyprland}/bin/hyprctl hyprpaper wallpaper ${monitor},${bg}
|
${pkgs.hyprland}/bin/hyprctl hyprpaper wallpaper ${monitor},${bg}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -66,7 +67,9 @@
|
||||||
ExecStart = "${lib.getExe pkgs.hyprpaper}";
|
ExecStart = "${lib.getExe pkgs.hyprpaper}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
Install.WantedBy = ["graphical-session.target"];
|
# Ensure that darkman runs only after this finished initializing
|
||||||
|
Install.WantedBy = ["graphical-session.target" "darkman.service"];
|
||||||
|
Install.Before = ["darkman.service"];
|
||||||
};
|
};
|
||||||
|
|
||||||
wobFifo = "~/.local/share/wob/fifo";
|
wobFifo = "~/.local/share/wob/fifo";
|
||||||
|
|
Loading…
Reference in a new issue