From 7bb65df2e05c0e65ee6d720b245a411d16e50493 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 13 Feb 2024 12:20:54 -0600 Subject: [PATCH] add lockscreen bin for wayland --- modules/desktop/window-managers/hyprland.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/desktop/window-managers/hyprland.nix b/modules/desktop/window-managers/hyprland.nix index 53877f6..3e2ad8b 100644 --- a/modules/desktop/window-managers/hyprland.nix +++ b/modules/desktop/window-managers/hyprland.nix @@ -7,6 +7,14 @@ }: let inherit (lib) mkIf; cfg = config.programs.hyprland; + + lock = pkgs.writeShellApplication { + name = "lock"; + runtimeInputs = with pkgs; [swaylock]; + text = '' + swaylock -c 1e1e2e + ''; + }; in { config = mkIf cfg.enable { security.pam.services.swaylock = {}; @@ -18,7 +26,7 @@ in { wlr-randr kanshi - swaylock + lock brightnessctl udiskie