add: swaylock

This commit is contained in:
ooks-io 2023-11-04 23:32:03 +13:00
parent 848c4d5aaa
commit ab6a54545e
3 changed files with 45 additions and 0 deletions

View file

@ -4,6 +4,7 @@
../standard/wayland
../music
../standard/wayland/eww
../standard/wayland/swaylock.nix
# ./tty-init.nix
./binds.nix

View file

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
let inherit (config.colorscheme) colors;
in
{
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
effect-blur = "20x3";
fade-in = 0.1;
font = config.fontProfiles.regular.family;
font-size = 15;
line-uses-inside = true;
disable-caps-lock-text = true;
indicator-caps-lock = true;
indicator-radius = 40;
indicator-idle-visible = true;
indicator-y-position = 1000;
ring-color = "#${colors.base02}";
inside-wrong-color = "#${colors.base08}";
ring-wrong-color = "#${colors.base08}";
key-hl-color = "#${colors.base0B}";
bs-hl-color = "#${colors.base08}";
ring-ver-color = "#${colors.base09}";
inside-ver-color = "#${colors.base09}";
inside-color = "#${colors.base01}";
text-color = "#${colors.base07}";
text-clear-color = "#${colors.base01}";
text-ver-color = "#${colors.base01}";
text-wrong-color = "#${colors.base01}";
text-caps-lock-color = "#${colors.base07}";
inside-clear-color = "#${colors.base0C}";
ring-clear-color = "#${colors.base0C}";
inside-caps-lock-color = "#${colors.base09}";
ring-caps-lock-color = "#${colors.base02}";
separator-color = "#${colors.base02}";
};
};
}

View file

@ -22,5 +22,6 @@ in
home-manager.users.ooks = import ../../../../home/ooks/${config.networking.hostName}.nix;
services.geoclue2.enable = true;
security.pam.services = { swaylock = { }; };
}