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 = [