From aa0a95ea1b00cb48d9e896d1f7db0d47f1ec0f9b Mon Sep 17 00:00:00 2001 From: Matt Nish-Lapidus Date: Tue, 18 Feb 2025 17:49:48 -0500 Subject: [PATCH] fixed media keys in niri --- modules/home/niri.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home/niri.nix b/modules/home/niri.nix index 84a5699..0be90a8 100644 --- a/modules/home/niri.nix +++ b/modules/home/niri.nix @@ -203,6 +203,10 @@ in { "Mod+Shift+A".action = spawn "hyprlock"; + "XF86AudioPlay" = { allow-when-locked = true; action = spawn "playerctl" "play-pause"; }; + "XF86AudioNext" = { allow-when-locked = true; action = spawn "playerctl" "next"; }; + "XF86AudioPrev" = { allow-when-locked = true; action = spawn "playerctl" "previous"; }; + "XF86AudioRaiseVolume" = { allow-when-locked = true; action = spawn "swayosd-client" "--output-volume" "raise";