fix(niri): set wallpaper when waybar is enabled
Previously setting wallpaper and starting xwayland-satellite was foiled
by an incorrect order precedence. Namely, rather than
if cond then foo else bar ++ baz
being understood as
(if cond then foo else bar) ++ baz
it was understood as
if cond then foo else (bar ++ baz)
This caused the background to be a plain grey when waybar was enabled
Change-Id: Ife082af03ba7f4fa3afdb903046b4f580da886f7
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/904
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/home/wayland/niri/default.nix b/modules/home/wayland/niri/default.nix
index e601610..faf9e1b 100644
--- a/modules/home/wayland/niri/default.nix
+++ b/modules/home/wayland/niri/default.nix
@@ -309,9 +309,9 @@
hotkey-overlay.skip-at-startup = true;
screenshot-path = null;
- spawn-at-startup = if config.chimera.waybar.enable then [{
+ spawn-at-startup = (if config.chimera.waybar.enable then [{
command = [ "${pkgs.waybar}/bin/waybar" ];
- }] else [] ++ [
+ }] else []) ++ [
{
command = [ "${pkgs.swaybg}/bin/swaybg" "-i" "${config.chimera.theme.wallpaper}" "-m" "fill" ];
}