Hyprland: Add Hyprlock

This commit is contained in:
GHOSCHT 2025-01-13 12:37:50 +01:00
parent 709a3b9d6a
commit 19429f231f
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
4 changed files with 9 additions and 1 deletions

View file

@ -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"

View file

@ -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

View file

@ -0,0 +1,5 @@
{
programs.hyprlock = { enable = true;
settings={};
};
}

View file

@ -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 = {