You are not logged in.

#1 2015-06-09 14:36:23

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

xdotool simulating multimedia keys

I'm trying to use xdotool to fake play/pause, next, and previous keys on my keyboard. I used xbindkeys -k to figure out which keys I would like to remap and then added the following my .xbindkeysrc

"xdotool key XF86AudioPlay"
        XF86LaunchA
"xdotool key XF86AudioPrev"
        XF86Search
"xdotool key XF86AudioNext"
        XF86Explorer

Then ran xbindkeys, but it doesnt seem to be working. Even just running xdotool key XF86AudioPlay doesnt seem to work.

Offline

#2 2015-06-09 14:47:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: xdotool simulating multimedia keys

syamajala wrote:

I'm trying to use xdotool to fake play/pause, next, and previous keys on my keyboard. I used xbindkeys -k to figure out which keys I would like to remap and then added the following my .xbindkeysrc

"xdotool key XF86AudioPlay"
        XF86LaunchA
"xdotool key XF86AudioPrev"
        XF86Search
"xdotool key XF86AudioNext"
        XF86Explorer

Then ran xbindkeys, but it doesnt seem to be working. Even just running xdotool key XF86AudioPlay doesnt seem to work.

It may be that your media player just does not respond to those keys.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2015-06-09 14:53:31

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: xdotool simulating multimedia keys

I'm using GMPC. My laptop actually has media keys and I didn't need to set anything up on that. They just worked with GMPC.

I also tried using gmpc-remote with xbindkeys but that doesn't seem to work either.

"gmpc-remote --play"
        XF86LaunchA
"gmpc-remote --prev"
        XF86Search
"gmpc-remote --next"
        XF86Explorer

EDIT: For some reason I needed to restart X to get xbindkeys and gmpc-remote to work. I guess thats an OK solution for now, but I would have preferred to use xdotool since its more general.

Last edited by syamajala (2015-06-09 14:56:33)

Offline

Board footer

Powered by FluxBB