this post was submitted on 06 Jul 2026
12 points (100.0% liked)

Linux

66264 readers
552 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] timroerstroem@feddit.dk 1 points 1 day ago (1 children)

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 3 points 1 day ago

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.