Lockscreen custom
This commit is contained in:
parent
b3fdc5f573
commit
e080d5b9b8
10 changed files with 134 additions and 49 deletions
|
|
@ -1,14 +1,12 @@
|
|||
{ system ? builtins.currentSystem }:
|
||||
{ pkgs ? import <nixpkgs> { inherit system; }
|
||||
, system ? builtins.currentSystem
|
||||
}:
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> { inherit system; };
|
||||
# pkgs = import (builtins.fetchTarball {
|
||||
# name = "nixos-unstable-2021-05-26";
|
||||
# url = "https://github.com/nixos/nixpkgs/archive/9b7fb215d4d8399772a4f3d6f00fab3747136f53.tar.gz";
|
||||
# sha256 = "02d1841j7jg161q7cwh7vryxhv7x3bmnhd1jczx14ggfa66vqfhm";
|
||||
# }) { inherit system; };
|
||||
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
||||
self = {
|
||||
gallery-tagger = callPackage ./gallery-tagger {};
|
||||
lockscreen = callPackage ./lockscreen pkgs.extra.colorPalette // {};
|
||||
};
|
||||
in(self)
|
||||
in
|
||||
(self)
|
||||
|
|
|
|||
55
custom/lockscreen/default.nix
Normal file
55
custom/lockscreen/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, extra
|
||||
, roboto
|
||||
, i3lock-color
|
||||
, writeScript
|
||||
, font ? { package = roboto; name = "Roboto"; }
|
||||
, palette ? extra.palette.palette {}
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
strPalette = extra.palette.toRGBAHex palette;
|
||||
in
|
||||
writeScript "lockscreen.sh" ''
|
||||
#!/bin/sh
|
||||
# Using font package ${font.package}
|
||||
${i3lock-color}/bin/i3lock-color \
|
||||
--insidever-color="${strPalette.normal.green}" \
|
||||
--insidewrong-color="${strPalette.normal.red}" \
|
||||
--inside-color="${strPalette.primary.background}" \
|
||||
--ringver-color="${strPalette.bright.green}" \
|
||||
--ringwrong-color="${strPalette.bright.red}" \
|
||||
--ringver-color="${strPalette.bright.green}" \
|
||||
--ringwrong-color="${strPalette.bright.red}" \
|
||||
--ring-color="${strPalette.bright.blue}" \
|
||||
--line-uses-ring \
|
||||
--keyhl-color="${strPalette.bright.red}" \
|
||||
--bshl-color="${strPalette.bright.red}" \
|
||||
--separator-color="${strPalette.primary.background}" \
|
||||
--verif-color="${strPalette.normal.green}" \
|
||||
--wrong-color="${strPalette.normal.red}" \
|
||||
--layout-color="${strPalette.normal.blue}" \
|
||||
--date-color="${strPalette.normal.blue}" \
|
||||
--time-color="${strPalette.normal.blue}" \
|
||||
--blur 10 \
|
||||
--clock \
|
||||
--indicator \
|
||||
--time-str="%H:%M:%S" \
|
||||
--date-str="%a %e %b %Y" \
|
||||
--verif-text="Verifying..." \
|
||||
--wrong-text="Auth Failed" \
|
||||
--noinput="No Input" \
|
||||
--lock-text="Locking..." \
|
||||
--lockfailed="Lock Failed" \
|
||||
--time-font="${font.name}" \
|
||||
--date-font="${font.name}" \
|
||||
--layout-font="${font.name}" \
|
||||
--verif-font="${font.name}" \
|
||||
--wrong-font="${font.name}" \
|
||||
--radius=120 \
|
||||
--ring-width=20 \
|
||||
--pass-media-keys \
|
||||
--pass-screen-keys \
|
||||
--pass-volume-keys \
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue