fix(hypr): prevent hyprpaper from failing due to missing socket

This commit is contained in:
Malte Tammena 2024-10-14 15:55:59 +02:00
parent eb76e892d7
commit 0251765b74
2 changed files with 4 additions and 7 deletions

View file

@ -212,12 +212,6 @@ in {
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.pasystray.enable = true;

View file

@ -54,6 +54,7 @@
monitors);
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}
'';
@ -66,7 +67,9 @@
ExecStart = "${lib.getExe pkgs.hyprpaper}";
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";