55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{ 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 \
|
|
''
|