mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
26 lines
491 B
Nix
26 lines
491 B
Nix
{ writers, lib, xlockmore }:
|
|
let
|
|
xlockModes = lib.concatStringsSep "\\n" [
|
|
# "braid"
|
|
"galaxy"
|
|
# "lightning"
|
|
# "matrix"
|
|
"pyro2"
|
|
"space"
|
|
];
|
|
in writers.writeDashBin "k-lock" ''
|
|
MODE=$(printf "${xlockModes}" | shuf -n 1)
|
|
|
|
${xlockmore}/bin/xlock \
|
|
-saturation 0.4 \
|
|
-erasemode no_fade \
|
|
+description \
|
|
-showdate \
|
|
-username " " \
|
|
-password " " \
|
|
-info " " \
|
|
-validate "..." \
|
|
-invalid "Computer says no." \
|
|
-mode "$MODE"
|
|
''
|