Linux Lite Forums

Full Version: Keyboard media keys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i have this keyboard which I use for a while now, and all around the standard keys which you (should) have on any keyboard, there are 12 media keys. Those are supposed to be shortcuts to calculator, home folder, mail etc. And they all work fine in windows, but not in linux.
So i searched a bit, and found installed-by-default editor for keyboard, called "keyboard" in whisker menu. It is just about perfect, but I just can't seem to find which commands to use for play/pause media button, and next/previous also.
Anybody any ideas?
Thanks in advance... Smile
Welcome to the forums.

play/pause
Code:
xdotool key XF86AudioPlay

previous/next

Code:
xdotool key XF86AudioPrev
Code:
xdotool key XF86AudioNext

volume down/up
Code:
xdotool key XF86AudioLowerVolume

Code:
xdotool key XF86AudioRaiseVolume

mute
Code:
xdotool key XF86AudioMute
Which part is the actual command? I'm sorry if it's a stupid question, but it seems that whatever I type in, only the first word is considered command, unless you put -- or something, I don't know.
Press Ctrl+Alt+T and when the terminal opens type in
Code:
xdotool key XF86AudioLowerVolume

Here is the manual of xdotool
Code:
man xdotool

I can't remember is it installed by default
if it's not
Code:
sudo apt-get install xdotool

It's all part of the command.  Wink
Awww, s*it, it just doesn't work... It does nothing... I type it in, as you said, in terminal, and hit Enter, and it just proceeds to next line to type in, so I go on... But it doesn't take efect on Audacious... Should i have some other music player or something?
And, it confuses me, how the hell does it know what
Code:
xdotool key XF86BlaBla
is supposed to bind it with which button? Should I press the certain button instead of "key", or what?
I'm totally confused... I'm new to linux, especially Linux Lite, so you'll have to excuse me for my ignorance and boringness......  Sad