From e742d73bdbf33703420a37af8c2796cd4cb5f333 Mon Sep 17 00:00:00 2001 From: Armel van Ravels Date: Thu, 29 Jan 2026 21:23:26 +0100 Subject: [PATCH] Add media button keybindings --- wm/hyprland.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wm/hyprland.nix b/wm/hyprland.nix index a15ce8a..c2aa5bb 100644 --- a/wm/hyprland.nix +++ b/wm/hyprland.nix @@ -5,6 +5,7 @@ bzmenu hyprshot hyprlock + playerctl ]; wayland.windowManager.hyprland = { @@ -115,6 +116,12 @@ # Hyprshot "$mod, Z, exec, hyprshot -m region" + + # Media keys + ", XF86AudioPlay, exec, playerctl play-pause" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+" + ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ]; bindm = [