mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2025-10-10 00:31:54 +05:30
feat(hyprland): add hyprlock configuration
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [./hyprlock.nix];
|
||||
|
||||
home.packages = with pkgs; [astal];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
@@ -206,6 +208,9 @@
|
||||
# shutdown
|
||||
"SUPER_SHIFT, P, exec, poweroff"
|
||||
|
||||
# lock
|
||||
"SUPER_SHIFT, L, exec, hyprlock"
|
||||
|
||||
# change focus
|
||||
"SUPER, left, movefocus, l"
|
||||
"SUPER, right, movefocus, r"
|
||||
|
47
modules/home/desktop/hyprland/hyprlock.nix
Normal file
47
modules/home/desktop/hyprland/hyprlock.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
ignore_empty_input = true;
|
||||
};
|
||||
|
||||
animations = {
|
||||
enabled = true;
|
||||
fade_in = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
};
|
||||
fade_out = {
|
||||
duration = 300;
|
||||
bezier = "easeOutQuint";
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user