Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-03-27 19:09:55

Paisquy
Member
Registered: 2021-03-27
Posts: 4

[SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

Hello all,

I want to set custom keyboard shortcuts for control audio playback like next & previous title (the function keys of my Thinkpad X250 work fine for volume control, but there are no dedicated keys for playback commands) for my XFCE desktop. In my XFCE settings there is nothing available, although there is the option to configure something, but my Linux knowledge is not sufficient to make some headway here.


So far I haven't found any helpful tutorials on the web

These ones didn't help me achieve my aim:


- https://unix.stackexchange.com/question … g-in-the-b
- https://wiki.archlinux.org/index.php/Xb … io_control
- https://wiki.archlinux.org/index.php/xfce#Shortcuts

In Gnome Shell it is possible to assign a custom key combinations for a preset audio command like next / previous title / pause / stop.


I am running on Fedora 33, although the distribution shouldn't matter much.

Many thanks in advance for your tips.

Last edited by Paisquy (2021-03-27 20:35:19)

Offline

#2 2021-03-27 20:01:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,700

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

Hello and welcome.

Which media player(s) are you looking to control this way? Most will have some sort of interface for allowing remote control of them, you just need to find those commands and assign them to shortcut keys.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-03-27 20:07:37

Paisquy
Member
Registered: 2021-03-27
Posts: 4

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

Thanks ToZ for your quick reply

Most of the times I use Audacious and I found a way to assign terminal commands to keyboard shortcuts (audacious -r / audacious - n e.g.). That is a helpful workaround. It would be though nice to have global keyboard shortcuts no matter which program I use, sometimes I use VLC for videos for example or a different audioplayer.


Maybe that is something to be achieved by sending command to pulseaudio?

Offline

#4 2021-03-27 20:13:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,700

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

I don't think its something that pulseaudio handles - it just manages sound, not media players. If the players support the MPRIS standard, you could use that. But I'm not sure that all of them do. There is some information at this Arch Wiki page on how to accomplish that.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-03-27 20:18:17

Paisquy
Member
Registered: 2021-03-27
Posts: 4

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

Thanks ToZ, I will have a look at the Arch Wiki page.


Many thanks again for your efforts

Offline

#6 2021-03-27 20:21:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,700

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

playerctl looks interesting, and its in fedora's repositories.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2021-03-27 20:34:36

Paisquy
Member
Registered: 2021-03-27
Posts: 4

Re: [SOLVED] Custom Keyboard Shortcuts for Audio Playback Control

Hello ToZ,

great idea, I could just set it up with playerctl and it works fine with all kinds of audio players. You really helped me here )



Will mark this thread as solved

Last edited by Paisquy (2021-03-27 20:35:41)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 546.2 KiB (Peak: 547.05 KiB) ]