From 9883bb07a4d7578f96d70d57e9da33862a696cbf Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 30 Aug 2023 08:29:28 +0900 Subject: [PATCH] Add a music pause to Win-L --- .../desktops/hyprland/gruvbox/hyprland-conf.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/hyprland-conf.nix b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/hyprland-conf.nix index a2d248a9..3eba9706 100644 --- a/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/hyprland-conf.nix +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/hyprland-conf.nix @@ -165,8 +165,8 @@ bind = $mainMod, R, exec, ranger bind = $mainMod, S, exec, steam - # Lock the screen, send to swaylock - bind = $mainMod, L, exec, swaylock + # Lock the screen, send to swaylock and pause music + bind = $mainMod, L, exec, swaylock && playerctl pause # Lid closure: # trigger when the switch is toggled @@ -262,7 +262,7 @@ # Set up the idle management daemon swayidle -w \ - timeout 120 'swaylock -f' \ + timeout 120 'swaylock -f && playerctl pause' \ timeout 180 'hyprctl dispatch dpms off' \ timeout 300 'systemctl suspend-then-hibernate' \ resume 'hyprctl dispatch dpms on' \