Linux Lite Forums
Keyboard media keys - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: Keyboard media keys (/showthread.php?tid=1865)



Keyboard media keys - kris - 05-28-2015

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


Re: Keyboard media keys - anon222 - 05-28-2015

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



Re: Keyboard media keys - kris - 05-28-2015

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.


Re: Keyboard media keys - anon222 - 05-28-2015

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


Re: Keyboard media keys - kris - 05-28-2015

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