sway version 1.2
If I include the Button XF86AudioPlayPause in my sway config like so:
bindsym XF86AudioPlayPause exec playerctl play-pause
Sway errors, with
Unknown key or button 'XF86AudioPlayPause'
Using sudo libinput debug-events --show-keycodes the button shows as
event10 KEYBOARD_KEY +7.23s KEY_PLAYPAUSE (164) pressed
event10 KEYBOARD_KEY +7.32s KEY_PLAYPAUSE (164) released
The keysym is XF86AudioPlay. You can use wev or xev to get the keysyms
Most helpful comment
The keysym is
XF86AudioPlay. You can usewevorxevto get the keysyms