Files
nix-config/users/jordan/common/optional/graphical/hyprland/hyprlock.nix
Jordan Holt 9e9df641aa
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m15s
hyprlock: add keybinding
2025-05-30 20:12:02 +01:00

52 lines
990 B
Nix

{
config,
lib,
...
}:
let
inherit (lib)
getExe
;
in
{
wayland.windowManager.hyprland.settings.bind = [
"$mainMod, L, exec, uwsm app -- ${getExe config.programs.hyprlock.package}"
];
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = false;
grace = 3;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "Password...";
shadow_passes = 2;
}
];
};
};
}