You are not logged in.
Pages: 1
I bought a new keyb, pretty nice... and it has all this useless but pretty keys upthere that i never knew how to set up in any keyb... im talking about the favulous "hotkeys"...
i have some that are for apps, folders and such, and the most interesting ones, a Log Off, sleep and a multimedia control (play, fwd, rwd, stop, volume, pause) which i guess i have to sync with XMMS...
anyone has any clues on this? im using Enlightenment by the way, and dont have KDE nor Gnome installed.
I know there is something called "bind" or similar, but thats as far as i go.
Thanks in advance
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
I use an app named Lineakd.
Offline
Gnome comes with an app called acme, that has worked fine for me. It's the only app I can get my "multimedia" keyboard working. There are no linux drivers, so I thought I was screwed, but accidentaly, I opened acme, configured it and worked fine.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
I'm curious to know what kind of output these sorts of keys would give you if you configured them direct in X... ie, what would xev give you?
I assume that these keys are not within the normal control of X...
Dusty
Offline
I'm curious to know what kind of output these sorts of keys would give you if you configured them direct in X... ie, what would xev give you?
I assume that these keys are not within the normal control of X...
Dusty
Usually they are, so any hotkey capturing program can use them (ie. most window managers).
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Indeed, X knows most of these keys (keycodes and even keynames!), as shown by xev:
state 0x10, keycode 236 (keysym 0x1008ff19, XF86Mail), same_screen YES,
...
state 0x10, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
...
state 0x10, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
...
state 0x10, keycode 162 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
...
state 0x10, keycode 164 (keysym 0x1008ff15, XF86AudioStop), same_screen YES,
Just be sure to put the correct settings in XF86Config. For instance:
Option "XkbModel" "logicdp"
Offline
Xev gives me this:
KeymapNotify event, serial 28, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 28, synthetic NO, window 0x2400001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 28, synthetic NO, window 0x2400001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 28, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
Interesting...
I knew there was a way to set this with X but i wanted to aboid posting:
Option "xkbmodel" "micro$oft"
guess its to late now
anyway, i dont really know the real model option for X (being the keyboard a M$ Multimedia Natural Keyboard)
I gave a try to xbindkeys and works almost fine, it doesnt detect a couple of the keys although... i guess i should try the keyb in windows to see if they actually work or if there is something wrong with them...
also im going to try Lineak as soon as i get time to figure how to configure compile and install, as the user who posted about it, didint post link or a pkgbuild or anything
anyway it wasnt hard to find...
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
There's already a package for lineak in extra: 'lineakd'.
Try 'lineakd -l' to get the list of supported keyboards.
If yours is not listed, you can still find some instructions in the documentation section of their website to make it work anyway (How to get your keyboard supported?).
Offline
See also man xmodmap.
Offline
I had a package in my TUR for binding keys to certain actions. It is 'xbindkeys' and 'xbindkeys-config', they are really useful. however, I have no found a way to bind a key for 'forward' and 'back' and 'refresh' in a browser, but xbindkeys is a nice little program. However, now i am using the thinkpad buttons package.
Offline
Hi,
Thanks for the info about lineak, i didnt tryed to search trough the main page, i just tryed "pacman -S lineak" and as it didnt worked i went to look for the project homepage... i found it and downloaded the pkgs, also i checked my keyboard, and its listed in the readme so i think its ok...
im going to try it right now (as i dont have to compile! )
thanks again.
Im going to have a look at xmodmap too, thanks.
And whata i already took the .... audacity to download the packages righ the same day i submited the second post thanks for both of them! (those were the ones on which i based my reply)
Also, there are a couple of versions up (xbindkeys current is 1.7.1 here is the link http://hocwp.free.fr/xbindkeys/xbindkeys-1.7.1.tar.gz) they might have solved the issues so you can use the browsing buttons....
Again! thanks all for the replies!
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
oops
Offline
All right, using a combination of xbindkeys and lineakd i made work almost every key....
but i cant make 4 keys work, as i dont find they "number", xbindkeys_config cant "get" the key when i press it, neither does xev (so its probable that the first uses the second to map the keys)
the hotkeys are "My Pictures", "My Music", "Messager" and "Log Off"
this keys work under windows so the problem is not hardware...
i dont know why they are not being detected.. xev doesnt print _anything_ when i press any of them.
the rest of the hotkeys work great though
any tips?? does anyone have any keys not being recognized??
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
It's been a while since I did this for mine, but all you have to do is give them a name using xmodmap. (The thing is that there are only certain names you can give them).
This is the basic procedure. Read /usr/X11R6/lib/X11/XKeysymDB (i'm using XServer, but it hasn't moved). The especially interesting keys here are the ones starting XF86* as these are generally for 'multimedia keys'. There is a XF86Messenger and XF86Pictures there, i see. And I'm sure you can find others you need too.
Oh dear, should have read your post a little closer. xev gives you no recognition at all for these other buttons? If you can get a "keycode" from it, then you can assign this to a name, which should make it easier for xbindkeys to use it. The best idea is to make an .Xmodmap file in your home directory. The format is as follows:
keycode 174 = XF86AudioLowerVolume
keycode 237 = XF86AudioMedia
keycode 160 = XF86AudioMute
keycode 153 = XF86AudioNext
keycode 162 = XF86AudioPlay
keycode 144 = XF86AudioPrev
Then load the keymap with $ xmodmap ~/.Xmodmap . You can check your modmap with $ xmodmap -pk.
Now i look again at your post, and most of this seems useless, since xev gives you nothing... I can only recommend trying again in a very basic X environment (i.e. a few xterms and nothing else) to be sure no gnome/kde stuff is getting in the way, and no configuration files are being loaded that could overwrite things. I could also recommend checking the .lst files in/usr/X11R6/lib/X11/xkb/rules to see if there is one for your exact keyboard model.
In any case, once you do get those keys, I think xmodmap, because it uses X, is the best way to get low-level support for your keys. In fact, i'm inclined to start a wiki on this topic, but that will have to wait until after my exams
Some stuff to try, anyway! Best of luck.
Offline
BigBadPenguin, thanks for all the data... i will try to see if i get around it, but i have to read a lot about xmodmap...
tehdely, dont know what a Model M is but if you want to give me one, i wouldnt mind... :twisted:
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
Pages: 1