mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 09:49:45 +01: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; [
|
||||
hyprdim
|
||||
hyprnome
|
||||
hyprlock
|
||||
hyprshade
|
||||
swww
|
||||
grimblast
|
||||
@ -353,39 +352,43 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.configFile."hypr/hyprlock.conf".text = /* bash */ ''
|
||||
general {
|
||||
hide_cursor = true
|
||||
grace = 2
|
||||
}
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
|
||||
background {
|
||||
color = rgba(25, 20, 20, 1.0)
|
||||
path = screenshot
|
||||
blur_passes = 2
|
||||
brightness = 0.5
|
||||
}
|
||||
settings = {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
grace = 2;
|
||||
};
|
||||
|
||||
label {
|
||||
text = パスワードをご入力ください
|
||||
color = rgba(222, 222, 222, 1.0)
|
||||
font_size = 50
|
||||
font_family = Noto Sans CJK JP
|
||||
position = 0, 70
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
background = {
|
||||
color = "rgba(25, 20, 20, 1.0)";
|
||||
path = "screenshot";
|
||||
blur_passes = 2;
|
||||
brightness = 0.5;
|
||||
};
|
||||
|
||||
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 = パスワード
|
||||
}
|
||||
'';
|
||||
label = {
|
||||
text = "パスワードをご入力ください";
|
||||
color = "rgba(222, 222, 222, 1.0)";
|
||||
font_size = 50;
|
||||
font_family = "Noto Sans CJK JP";
|
||||
position = "0, 70";
|
||||
halign = "center";
|
||||
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 = {
|
||||
enable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user