From f68b9dde96b6261b11e891e6bf4ca00cad3df0d3 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Sun, 27 Oct 2024 11:56:17 +0100 Subject: [PATCH] feat(wm): also pause anything playing on lid close --- home/wm/hyprland.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/wm/hyprland.nix b/home/wm/hyprland.nix index 5670eec..b375e40 100644 --- a/home/wm/hyprland.nix +++ b/home/wm/hyprland.nix @@ -193,6 +193,7 @@ ", XF86AudioPrev, exec, ${playerctl} previous" ", XF86AudioPlay, exec, ${playerctl} play-pause" ", XF86AudioNext, exec, ${playerctl} next" + ", switch:on:Lid Switch, exec, ${playerctl} pause" ", switch:on:Lid Switch, exec, ${swaylock}" ", switch:on:Lid Switch, exec, systemctl suspend" ];