mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
feat: disable xautolock, lock only manually
This commit is contained in:
@@ -242,4 +242,5 @@ in rec {
|
||||
|
||||
bvg = pkgs.callPackage ./bvg.nix { };
|
||||
nav = pkgs.callPackage ./nav.nix { };
|
||||
k-lock = pkgs.callPackage ./k-lock.nix { };
|
||||
}
|
||||
|
||||
25
packages/scripts/k-lock.nix
Normal file
25
packages/scripts/k-lock.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ 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"
|
||||
''
|
||||
Reference in New Issue
Block a user