mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Add XF86AudioPause media key mapping
Some Bluetooth earbuds send alternating XF86AudioPlay/XF86AudioPause keycodes on the same physical press. Without a binding for XF86AudioPause, every other press is dropped, making playback toggle unreliable.
This commit is contained in:
committed by
Ivan Molodetskikh
parent
cd5ac3e5e0
commit
4294948cf1
@@ -383,6 +383,7 @@ binds {
|
||||
// Example media keys mapping using playerctl.
|
||||
// This will work with any MPRIS-enabled media player.
|
||||
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
||||
XF86AudioPause allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
||||
XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; }
|
||||
XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; }
|
||||
XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; }
|
||||
|
||||
Reference in New Issue
Block a user