add lockscreen support
This commit is contained in:
parent
c5050f9f5f
commit
79d36e01be
1 changed files with 752 additions and 389 deletions
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
quickshell,
|
||||
writeShellApplication,
|
||||
glib,
|
||||
networkmanager,
|
||||
modemmanager,
|
||||
nmgui,
|
||||
|
|
@ -9,6 +10,8 @@
|
|||
coreutils,
|
||||
gawk,
|
||||
gnugrep,
|
||||
# Blurred behind the lockscreen
|
||||
wallpaper ? null,
|
||||
}:
|
||||
let
|
||||
config = lib.fileset.toSource {
|
||||
|
|
@ -27,9 +30,11 @@ writeShellApplication {
|
|||
coreutils
|
||||
gawk
|
||||
gnugrep
|
||||
glib # gdbus, for logind's lock signal
|
||||
];
|
||||
|
||||
text = ''
|
||||
${lib.optionalString (wallpaper != null) "export QUADSHELL_WALLPAPER=${wallpaper}"}
|
||||
exec ${lib.getExe quickshell} --path ${config} "$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue