use wallpaper from swaybg

This commit is contained in:
Henry Hiles 2026-11-17 20:17:44 -05:00
commit b5e5ecf2f3
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -10,8 +10,7 @@
coreutils,
gawk,
gnugrep,
# Blurred behind the lockscreen
wallpaper ? null,
procps,
}:
let
config = lib.fileset.toSource {
@ -31,10 +30,10 @@ writeShellApplication {
gawk
gnugrep
glib # gdbus, for logind's lock signal
procps # pgrep, for the wallpaper swaybg is showing
];
text = ''
${lib.optionalString (wallpaper != null) "export QUADSHELL_WALLPAPER=${wallpaper}"}
exec ${lib.getExe quickshell} --path ${config} "$@"
'';
}