add: swaylock
This commit is contained in:
parent
848c4d5aaa
commit
ab6a54545e
3 changed files with 45 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
../standard/wayland
|
../standard/wayland
|
||||||
../music
|
../music
|
||||||
../standard/wayland/eww
|
../standard/wayland/eww
|
||||||
|
../standard/wayland/swaylock.nix
|
||||||
|
|
||||||
# ./tty-init.nix
|
# ./tty-init.nix
|
||||||
./binds.nix
|
./binds.nix
|
||||||
|
|
|
||||||
43
home/ooks/opt/desktop/standard/wayland/swaylock.nix
Normal file
43
home/ooks/opt/desktop/standard/wayland/swaylock.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -22,5 +22,6 @@ in
|
||||||
home-manager.users.ooks = import ../../../../home/ooks/${config.networking.hostName}.nix;
|
home-manager.users.ooks = import ../../../../home/ooks/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
services.geoclue2.enable = true;
|
services.geoclue2.enable = true;
|
||||||
|
security.pam.services = { swaylock = { }; };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue