Switch swaylock for swaylock-effects

This commit is contained in:
Evie Litherland-Smith 2024-01-27 08:31:11 +00:00
parent b01c270c2e
commit 88ed043992
2 changed files with 12 additions and 2 deletions

View file

@ -65,10 +65,20 @@
}; };
swaylock = { swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects;
# Settings are specifically for swaylock-effects
settings = { settings = {
indicator-radius = 100;
indicator-thickness = 10;
indicator-caps-lock = true; indicator-caps-lock = true;
ignore-empty-password = true; ignore-empty-password = true;
show-failed-attempts = true; show-failed-attempts = true;
effect-blur =
with config.wayland.windowManager.hyprland.settings.decoration.blur;
"${toString size}x${toString passes}";
effect-vignette = "0.5:0.5";
grace = 0.5;
fade-in = 0.2;
}; };
}; };
}; };
@ -256,7 +266,7 @@
in with lib.lists; in with lib.lists;
flatten (forEach (range 1 9) workspace) ++ [ flatten (forEach (range 1 9) workspace) ++ [
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
"SUPER, F1, exec, swaylock" "SUPER, F1, exec, ${pkgs.swaylock-effects}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse"
"SUPER, Q, killactive," "SUPER, Q, killactive,"
"SUPER SHIFT, Q, exec, rofi -replace -show power-menu" "SUPER SHIFT, Q, exec, rofi -replace -show power-menu"
"SUPER, V, togglefloating" "SUPER, V, togglefloating"

View file

@ -12,7 +12,7 @@
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent libsForQt5.polkit-kde-agent
swaylock swaylock-effects
swaynotificationcenter swaynotificationcenter
xdg-utils xdg-utils
hyprpaper hyprpaper