mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds lockscreen
This commit is contained in:
parent
ec1e8b00c2
commit
0ae4b0aa22
1 changed files with 42 additions and 0 deletions
42
modules/home/hyprland/hyprlock.nix
Normal file
42
modules/home/hyprland/hyprlock.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
background = [{
|
||||
path = ~/nixos-config/modules/home/hyprland/lockscreen.png;
|
||||
blur_passes = 0;
|
||||
color = "rgb(1e1e2e)"; # base
|
||||
}];
|
||||
|
||||
input-field = [{
|
||||
size = "300, 60";
|
||||
outline_thickness = 4;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.5;
|
||||
dots_center = true;
|
||||
outer_color = "rgb(cba6f7)"; # mauve
|
||||
inner_color = "rgba(24, 24, 36, 1)";
|
||||
# inner_color = $surface0;
|
||||
font_color = "rgba(203, 164, 243, 1)";
|
||||
# font_color = $text;
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "\<span foreground\=\'\#\#cba6f7\'\>\ Logged in as \<span foreground\=\'\#\#cba6f7\'\>\<b\>\$USER\<\/b\>\<\/span\>\<\/span\>";
|
||||
# placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>;
|
||||
hide_input = false;
|
||||
check_color = "rgb(cba6f7)"; # mauve
|
||||
fail_color = "rgb(f38ba8)";
|
||||
fail_text = "\<i\>\<b\>\(\$ATTEMPTS\)\<\/b\>\<\/i\>";
|
||||
capslock_color = "rgb(f9e2af)";
|
||||
position = "0\, \-48";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}];
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue