mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02:00
hyprland: Use home-manager module for hyprlock
This commit is contained in:
parent
1462c868b6
commit
47c6d60229
@ -19,7 +19,6 @@ in
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
hyprdim
|
hyprdim
|
||||||
hyprnome
|
hyprnome
|
||||||
hyprlock
|
|
||||||
hyprshade
|
hyprshade
|
||||||
swww
|
swww
|
||||||
grimblast
|
grimblast
|
||||||
@ -353,39 +352,43 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = /* bash */ ''
|
programs.hyprlock = {
|
||||||
general {
|
enable = true;
|
||||||
hide_cursor = true
|
|
||||||
grace = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
background {
|
settings = {
|
||||||
color = rgba(25, 20, 20, 1.0)
|
general = {
|
||||||
path = screenshot
|
hide_cursor = true;
|
||||||
blur_passes = 2
|
grace = 2;
|
||||||
brightness = 0.5
|
};
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
background = {
|
||||||
text = パスワードをご入力ください
|
color = "rgba(25, 20, 20, 1.0)";
|
||||||
color = rgba(222, 222, 222, 1.0)
|
path = "screenshot";
|
||||||
font_size = 50
|
blur_passes = 2;
|
||||||
font_family = Noto Sans CJK JP
|
brightness = 0.5;
|
||||||
position = 0, 70
|
};
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
label = {
|
||||||
size = 50, 50
|
text = "パスワードをご入力ください";
|
||||||
dots_size = 0.33
|
color = "rgba(222, 222, 222, 1.0)";
|
||||||
dots_spacing = 0.15
|
font_size = 50;
|
||||||
outer_color = rgba(25, 20, 20, 0)
|
font_family = "Noto Sans CJK JP";
|
||||||
inner_color = rgba(25, 20, 20, 0)
|
position = "0, 70";
|
||||||
font_color = rgba(222, 222, 222, 1.0)
|
halign = "center";
|
||||||
placeholder_text = パスワード
|
valign = "center";
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
|
input-field = {
|
||||||
|
size = "50, 50";
|
||||||
|
dots_size = 0.33;
|
||||||
|
dots_spacing = 0.15;
|
||||||
|
outer_color = "rgba(25, 20, 20, 0)";
|
||||||
|
inner_color = "rgba(25, 20, 20, 0)";
|
||||||
|
font_color = "rgba(222, 222, 222, 1.0)";
|
||||||
|
placeholder_text = "パスワード";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user