niri: integrate with playerctl for media controls

This commit is contained in:
Veneficium 2024-11-09 23:14:35 +01:00
parent cd494f110d
commit 27d6039586
2 changed files with 9 additions and 1 deletions

View file

@ -277,6 +277,11 @@ binds {
Caps_Lock allow-when-locked=true { spawn "sh" "-c" "sleep 0.06 && swayosd-client --caps-lock"; }
Num_Lock allow-when-locked=true { spawn "sh" "-c" "sleep 0.06 && swayosd-client --num-lock"; }
XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; }
XF86AudioStop allow-when-locked=true { spawn "playerctl" "stop"; }
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; }
Mod+Q { close-window; }
Mod+Left { focus-column-left; }