Project

General

Profile

Feature #932

Global Hotkeys: Pressing Play a second time should Pause

Added by Brad B 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Minor
Assignee:
-
Category:
plugins/hotkey
Target version:
-
Start date:
December 23, 2019
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

On my laptop, as is common with the vast majority of modern laptops, the only only media control keys are Forward, Backwards, and Play/Pause. There is no Stop or Pause hotkey.

This makes it impossible to stop or pause media play in Audacious via Global Hotkeys by default.

It is noteworthy that the media keys on all four keyboards on my desktop right now have a "Play/Pause" key. The icon on the key isn't just a "Play" icon, it's also a "Pause" icon, as indicated by the two vertical bars. The intent that pressing this button a second time should pause playback is very clear.

A simple fix would be to cause Play to pause playback if currently already playing.

VLC already does this, as does Clemintine.

History

#1 Updated by John Lindgren 2 months ago

This is configurable already. You can assign XF86AudioPlay to the Pause/Resume action. It should perhaps be called Play/Pause instead, but it does the same thing.

#2 Updated by Brad B 2 months ago

Actually it's named "Pause/Resume" on my install and there was no "Play/Pause", but close enough! It functions as-expected, so thank you very much!

Given the ubiquity of media keys like this, might I suggest making this the default behavior for the AudioPlay key?

After investigating a bit, it appears my two laptops (Apple and Dell) appear to map that key to the AudioPlay function, and my desktop keyboard maps it to AudioPause, which explains why the play/pause functionality was working on my desktop but not on my laptops. Different vendors decided to map the key to two different things.

#3 Updated by Brad B 2 months ago

Feel free to close this out. Thanks again.

Also available in: Atom PDF