1
0
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:
2020-12-13 20:08:26 +01:00
parent 10ad21a39c
commit 72f04f9391
5 changed files with 28 additions and 42 deletions

View File

@@ -242,4 +242,5 @@ in rec {
bvg = pkgs.callPackage ./bvg.nix { };
nav = pkgs.callPackage ./nav.nix { };
k-lock = pkgs.callPackage ./k-lock.nix { };
}

View 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"
''