can you use modifiers w multimedia keys?

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 })

20 points · 4 comments · view on lemmy.world

4 Comments

timroerstroem@feddit.dk · 3 pts · 43d (1 reply)

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.

sinextitan@lemmy.world · 4 pts · 43d

turns out my kb doesn't have a XF86AudioPause button, so both play and pause are settled by XF86AudioPlay. 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.

bjoern_tantau@swg-empire.de · 3 pts · 43d (1 reply)

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%.

sinextitan@lemmy.world · 3 pts · 43d

that's a cool idea. I may implement it.