add hyprlock
This commit is contained in:
parent
48810564b1
commit
7ca7592c97
4 changed files with 50 additions and 2 deletions
|
@ -25,6 +25,10 @@
|
|||
};
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
hyprpaper.url = "github:hyprwm/hyprpaper";
|
||||
hyprlock = {
|
||||
url = "github:hyprwm/hyprlock";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland-contrib = {
|
||||
url = "github:hyprwm/contrib";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
imports = [./hyprlock.nix];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
"$terminal" = "kitty";
|
||||
"$menu" = "fuzzel";
|
||||
"$terminal" = "kitty"; "$menu" = "fuzzel";
|
||||
"monitor" = "eDP-1, 2256x1504@60, 0x0, 1.6";
|
||||
input.touchpad.natural_scroll = true;
|
||||
gestures.workspace_swipe = true;
|
||||
|
@ -50,6 +50,7 @@
|
|||
};
|
||||
|
||||
programs.fuzzel.enable = true;
|
||||
|
||||
home.packages = with inputs.hyprland-contrib.packages.${pkgs.system}; [
|
||||
grimblast
|
||||
];
|
||||
|
|
42
home/laptop/hyprland/hyprlock.nix
Normal file
42
home/laptop/hyprland/hyprlock.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
package = inputs.hyprlock.packages.${pkgs.system}.default;
|
||||
settings =
|
||||
{
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
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 = ''
|
||||
<span foreground="##cad3f5">Password...</span>
|
||||
'';
|
||||
shadow_passes = 2;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -39,5 +39,6 @@ in
|
|||
default_session = initial_session;
|
||||
};
|
||||
};
|
||||
security.pam.services.hyprlock = {};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue