From 19429f231f3357711f0f4f4ffb32eade7fe0ae3d Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:37:50 +0100 Subject: [PATCH] Hyprland: Add Hyprlock --- home/features/desktop/hyprland/config.nix | 1 + home/features/desktop/hyprland/default.nix | 2 +- home/features/desktop/hyprland/hyprlock.nix | 5 +++++ hosts/ludwig/default.nix | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 home/features/desktop/hyprland/hyprlock.nix diff --git a/home/features/desktop/hyprland/config.nix b/home/features/desktop/hyprland/config.nix index 5f1da25..fbdfcd7 100644 --- a/home/features/desktop/hyprland/config.nix +++ b/home/features/desktop/hyprland/config.nix @@ -120,6 +120,7 @@ "$mainMod, F, fullscreen, 0" "$mainMod SHIFT, F, fullscreen, 1" ", Print, exec, hyprshade off && grim -g \"$(slurp -w 0 -d -b 00000080)\" - | wl-copy && hyprshade on bluelight" + "$mainMod, L, exec, hyprlock" # lockscreen # Move focus with mainMod + arrow keys "$mainMod, left, movefocus, l" diff --git a/home/features/desktop/hyprland/default.nix b/home/features/desktop/hyprland/default.nix index 3e633a3..31b53a1 100644 --- a/home/features/desktop/hyprland/default.nix +++ b/home/features/desktop/hyprland/default.nix @@ -2,7 +2,7 @@ , pkgs , ... }: { - imports = [ ./config.nix ./variables.nix ]; + imports = [ ./config.nix ./variables.nix ./hyprlock.nix]; home.packages = with pkgs; [ hyprpicker # color picker wofi # dmenu replacement diff --git a/home/features/desktop/hyprland/hyprlock.nix b/home/features/desktop/hyprland/hyprlock.nix new file mode 100644 index 0000000..4a3b184 --- /dev/null +++ b/home/features/desktop/hyprland/hyprlock.nix @@ -0,0 +1,5 @@ +{ + programs.hyprlock = { enable = true; + settings={}; + }; +} diff --git a/hosts/ludwig/default.nix b/hosts/ludwig/default.nix index 6f5ef49..4294461 100644 --- a/hosts/ludwig/default.nix +++ b/hosts/ludwig/default.nix @@ -71,6 +71,8 @@ services.udev.packages = [pkgs.segger-jlink]; + security.pam.services.hyprlock = { }; + # environment.sessionVariables.QT_QPA_PLATFORM = "wayland"; services.xserver.displayManager.gdm.enable = true; programs = {