From 88ed04399278c985635cf4b22990fd1f731aaf83 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 27 Jan 2024 08:31:11 +0000 Subject: [PATCH] Switch swaylock for swaylock-effects --- home/hyprland/default.nix | 12 +++++++++++- system/hyprland.nix | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 1db4acd6..ecb4f3c2 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -65,10 +65,20 @@ }; swaylock = { enable = true; + package = pkgs.swaylock-effects; + # Settings are specifically for swaylock-effects settings = { + indicator-radius = 100; + indicator-thickness = 10; indicator-caps-lock = true; ignore-empty-password = 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; flatten (forEach (range 1 9) workspace) ++ [ # 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 SHIFT, Q, exec, rofi -replace -show power-menu" "SUPER, V, togglefloating" diff --git a/system/hyprland.nix b/system/hyprland.nix index a4c9f3a4..00423766 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -12,7 +12,7 @@ }; systemPackages = with pkgs; [ libsForQt5.polkit-kde-agent - swaylock + swaylock-effects swaynotificationcenter xdg-utils hyprpaper