I’m trying to set up a bind on Hyprland using SHIFT + XF86AudioPause to control my previous media player but I can’t make it work. can you combine modifiers w multimedia keys? if so what am I doing wrong?
EDIT: thanks to @timroerstroem@feddit.dk and @bjoern_tantau@swg-empire.de, figured out my mistake cuz of them.
here’s my updated config
hl.bind("SHIFT + XF86AudioPlay", hl.dsp.exec_cmd("playerctld shift && playerctl --player=vlc play-pause"), { locked = true })
I have had that working on Hyprland, using shift+volume to change microphone volume. First, obviously, make sure that your keyboard returns XF86AudioPause (not, e.g. XF86AudioPlayPause). Next, try having that key combination execute a command you know works (launch a browser or some such). If none of those work, I’m out of ideas.
turns out my kb doesn’t have a
XF86AudioPausebutton, so both play and pause are settled byXF86AudioPlay. so I was trying to make it work w a bind that can’t exist. the cmd that I was executing, this time I fully copied it into the terminal and figured out the error. ‘playerctld’ does not have the same flags as ‘playerctl’. dk y my dumbass thought that.
Don’t know about Hyprland but it should work generally. On KDE I have shift + the volume keys set up to only change the volume in 1% steps instead of the usual 5%.
that’s a cool idea. I may implement it.


