From 5b60fa3cc8da56242d87bc0eead2124cd7d0ae89 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Tue, 15 Oct 2024 11:35:21 +0200 Subject: [PATCH] feat: lock and suspend on screen close --- home/hyprland.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/hyprland.nix b/home/hyprland.nix index ceb497c..308d2c8 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -176,10 +176,13 @@ bindl = let playerctl = lib.getExe' pkgs.playerctl "playerctl"; + swaylock = lib.getExe pkgs.swaylock; in [ ", XF86AudioPrev, exec, ${playerctl} previous" ", XF86AudioPlay, exec, ${playerctl} play-pause" ", XF86AudioNext, exec, ${playerctl} next" + ", switch:on:Lid Switch, exec, ${swaylock}" + ", switch:on:Lid Switch, exec, systemctl suspend" ]; bindm = [