[Asahi] Add barebones hyprlock.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
1d81f69881
commit
512b22c021
2 changed files with 33 additions and 0 deletions
|
|
@ -2,6 +2,34 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
hyprshot
|
hyprshot
|
||||||
];
|
];
|
||||||
|
programs.hyprlock = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = {
|
||||||
|
monitor = "";
|
||||||
|
color = "rgba(25, 20, 20, 1.0)";
|
||||||
|
blur_passes = 2;
|
||||||
|
};
|
||||||
|
input-field = {
|
||||||
|
monitor = "";
|
||||||
|
size = "20%, 5%";
|
||||||
|
outline_thickness = 3;
|
||||||
|
inner_color = "rgba(0, 0, 0, 0.0)"; # no fill
|
||||||
|
|
||||||
|
outer_color = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||||
|
check_color = "rgba(00ff99ee) rgba(ff6633ee) 120deg";
|
||||||
|
fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg";
|
||||||
|
|
||||||
|
font_color = "rgb(143, 143, 143)";
|
||||||
|
fade_on_empty = false;
|
||||||
|
rounding = 15;
|
||||||
|
|
||||||
|
position = "0, -20";
|
||||||
|
halign = "center";
|
||||||
|
valign = "center";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
# TODO: Move swaync to its own module if it ever gets more complex than just enalbement.
|
# TODO: Move swaync to its own module if it ever gets more complex than just enalbement.
|
||||||
services.swaync.enable = true;
|
services.swaync.enable = true;
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
|
|
@ -121,6 +149,7 @@
|
||||||
"$mainMod SHIFT, P, exec, hyprshot -m region"
|
"$mainMod SHIFT, P, exec, hyprshot -m region"
|
||||||
"$mainMod, P, exec, hyprshot -m output"
|
"$mainMod, P, exec, hyprshot -m output"
|
||||||
# "$mainMod, J, togglesplit," # dwindle
|
# "$mainMod, J, togglesplit," # dwindle
|
||||||
|
"$mainMod SHIFT, L, exec, hyprlock"
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
"$mainMod, M, movefocus, l"
|
"$mainMod, M, movefocus, l"
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@
|
||||||
hardware.bluetooth.powerOnBoot = false;
|
hardware.bluetooth.powerOnBoot = false;
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
security.pam.services.hyprlock = {};
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
@ -119,6 +121,8 @@
|
||||||
kitty
|
kitty
|
||||||
# Theming
|
# Theming
|
||||||
palenight-theme
|
palenight-theme
|
||||||
|
# Lock screen
|
||||||
|
hyprlock
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue