feat(wm): also pause anything playing on lid close

This commit is contained in:
EinEtwas 2024-10-27 11:56:17 +01:00
parent fbe48d459e
commit f68b9dde96
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0

View file

@ -193,6 +193,7 @@
", XF86AudioPrev, exec, ${playerctl} previous" ", XF86AudioPrev, exec, ${playerctl} previous"
", XF86AudioPlay, exec, ${playerctl} play-pause" ", XF86AudioPlay, exec, ${playerctl} play-pause"
", XF86AudioNext, exec, ${playerctl} next" ", XF86AudioNext, exec, ${playerctl} next"
", switch:on:Lid Switch, exec, ${playerctl} pause"
", switch:on:Lid Switch, exec, ${swaylock}" ", switch:on:Lid Switch, exec, ${swaylock}"
", switch:on:Lid Switch, exec, systemctl suspend" ", switch:on:Lid Switch, exec, systemctl suspend"
]; ];