working play/pause media keys in Manjaro KDE
I noticed that the default keyboard shortcuts for playing and pausing media does not work on Manjaro.

This is useful to have if you are like me and have headphones that have a play/pause button or a keyboard with media keys.
This works with my Razer Hammerhead USB-C Headphones and Logitech Craft Keyboard

First step is remove the default keyboard shortcuts.

Global Shortcuts -> Other Shortcuts -> Media Controller -> Play/Pause Media Playback. Set this to None. It doesn't work so
we are getting it out of the way.

Interesting to note that volume up and down work out of the box. Less work for us!

xbindkeys allows you to map any key to any command...

sudo pacman -S xbindkeys

playerctl is a client that automatically finds media sources and allows you to play/pause them, go forward/backward, etc...

sudo pacman -S playerctl

add this to .xbindkeysrc (you need to create this file in your home directory)

"playerctl play-pause"

now start xbindkeys program

xbindkeys -p

make it permanent if you want by adding it to Autostart:

Autostart -> add program -> click the folder and find it in /usr/bin/xbindkeys -> make it executable and that should be it!

Enjoy your new ability to quickly play and pause media from peripherals. Even works on Youtube videos in Chromium! Don't think it works in Firefox though.
Should work for Spotify, vlc, and other media players... untested though.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Freepascal FPC3.20 and Lazarus IDE on Manjaro KDE dieselnutjob 0 79 08-02-2020, 06:57 AM
Last Post: dieselnutjob
  Installing WPS Office on Manjaro brent.thierens 5 798 07-13-2020, 03:13 AM
Last Post: brent.thierens
  kernel build script for latest mainline manjaro kernel xmixahlx 42 4,392 07-11-2020, 09:01 PM
Last Post: xmixahlx
  full disk encryption with luks on manjaro xfce limxr 48 4,505 07-09-2020, 07:27 AM
Last Post: JtR
  Is there a MMC upgrade instruction from debian-mate to manjaro factory (20.06)? pljanson 4 353 06-23-2020, 12:41 AM
Last Post: pljanson
  How to boot Manjaro from NVME with uboot on eMMC as400 47 4,113 06-07-2020, 02:37 AM
Last Post: as400
  Instructions for Installing VS Code on Manjaro clover 6 1,688 06-04-2020, 09:37 PM
Last Post: pfeerick
  QGroundcontrol on Manjaro chaoskampf 0 217 04-06-2020, 05:12 PM
Last Post: chaoskampf
  How to get kernel boot messages on screen on Manjaro as400 2 403 01-23-2020, 04:35 PM
Last Post: as400
  Manjaro XFCE: Enable Natural Scrolling (Reverse scrolling direction) kiddailey 0 463 01-22-2020, 08:10 PM
Last Post: kiddailey

Forum Jump:

Users browsing this thread: 1 Guest(s)