PDA

View Full Version : [xubuntu] Global Shortcut To Play/Pause Media In Xubuntu 16.04?



user2037
May 16th, 2016, 02:14 PM
Anyone know how best to go about this?

In 12.04 and earlier I recall using the keyboard setup to add simple shortcut to simulate the play-pause media key. That kind of binding is not as obvious in 16.04 as I recall it being in the past.

him610
May 16th, 2016, 10:55 PM
FWIW, There is a key on my keyboard that has the play-pause icon on it. When pressed with music playing, it pauses; when pressed again, it resumes play. Maybe you have a key with the play-pause function on your keyboard.

QDR06VV9
May 16th, 2016, 11:08 PM
Also This from "audacious --help" and this the help option should also work with other players as well


Controlling playback:
-p, --play
Start playback. If paused, playback will resume from the same
point. If already active and not paused, it will restart from
the beginning of the song.

-u, --pause
Pause playback, or resume if already paused.

-t, --play-pause
Equivalent to --pause if playback is active, otherwise --play.

-s, --stop
Stop playback.

-r, --rew
Skip to the previous song in the playlist.

-f, --fwd
Skip to the next song in the playlist.

Miscellaneous:
-m, --show-main-window
Show the Audacious window if it is hidden and bring it to the
top.

-j, --show-jump-box
Show the Jump to Song window.

-H, --headless
Start in command-line mode; i.e., without any graphical user
interface.

-q, --quit-after-play
Exit as soon as playback stops, or immediately if there is noth‐
ing to play.

-v, --version
Print version information and exit.