Hyprland lockscreen and rice
This commit is contained in:
parent
7eee9cd4d1
commit
a4043761de
4 changed files with 255 additions and 0 deletions
36
custom/way-lockscreen/default.nix
Normal file
36
custom/way-lockscreen/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, rice
|
||||
, roboto
|
||||
, swaylock-effects
|
||||
, writeScriptBin
|
||||
, font ? {
|
||||
package = roboto;
|
||||
name = "Roboto";
|
||||
}
|
||||
, palette ? rice.palette.palette { }
|
||||
, ...
|
||||
}:
|
||||
let strPalette = lib.nix-rice.palette.toRgbaShortHex palette;
|
||||
in writeScriptBin "way-lockscreen" ''
|
||||
# Using font package ${font.package}
|
||||
${swaylock-effects}/bin/swaylock \
|
||||
--color="${strPalette.primary.background}"
|
||||
--inside-ver-color="${strPalette.normal.green}" \
|
||||
--inside-wrong-color="${strPalette.normal.red}" \
|
||||
--inside-color="${strPalette.normal.black}" \
|
||||
--ring-ver-color="${strPalette.bright.green}" \
|
||||
--ring-wrong-color="${strPalette.bright.red}" \
|
||||
--ring-ver-color="${strPalette.bright.green}" \
|
||||
--ring-wrong-color="${strPalette.bright.red}" \
|
||||
--ring-color="${strPalette.bright.blue}" \
|
||||
--line-uses-ring \
|
||||
--key-hl-color="${strPalette.bright.red}" \
|
||||
--bs-hl-color="${strPalette.bright.red}" \
|
||||
--separator-color="${strPalette.normal.black}" \
|
||||
--indicator-radius=120 \
|
||||
--indicator-thickness=15 \
|
||||
--effect-blur 3x10 \
|
||||
--font="${font.name}" \
|
||||
--font-size="${toString font.size}"
|
||||
''
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue