You are not logged in.

#1 2004-06-01 07:00:23

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

how to set keyboard 'hotkeys'?

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

#2 2004-06-01 07:23:55

Egil.B
Member
From: Universitas Osloensis
Registered: 2004-02-14
Posts: 116

Re: how to set keyboard 'hotkeys'?

I use an app named Lineakd.

Offline

#3 2004-06-01 20:52:55

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: how to set keyboard 'hotkeys'?

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

#4 2004-06-01 21:09:43

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: how to set keyboard 'hotkeys'?

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

#5 2004-06-01 21:45:44

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: how to set keyboard 'hotkeys'?

Dusty wrote:

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

#6 2004-06-01 22:10:30

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: how to set keyboard 'hotkeys'?

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

#7 2004-06-01 22:17:07

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: how to set keyboard 'hotkeys'?

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

#8 2004-06-02 05:05:50

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: how to set keyboard 'hotkeys'?

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  lol


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 smile
anyway it wasnt hard to find...


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#9 2004-06-02 06:55:01

orelien
Forum Fellow
From: France
Registered: 2002-12-05
Posts: 220
Website

Re: how to set keyboard 'hotkeys'?

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

#10 2004-06-02 13:47:29

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: how to set keyboard 'hotkeys'?

See also man xmodmap.

Offline

#11 2004-06-03 02:05:34

whatah
Member
Registered: 2003-08-10
Posts: 114

Re: how to set keyboard 'hotkeys'?

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

#12 2004-06-03 03:47:08

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: how to set keyboard 'hotkeys'?

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! smile)

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 smile 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

#13 2004-06-03 14:31:55

whatah
Member
Registered: 2003-08-10
Posts: 114

Re: how to set keyboard 'hotkeys'?

oops

Offline

#14 2004-06-04 06:00:40

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: how to set keyboard 'hotkeys'?

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

#15 2004-06-04 09:19:52

BigBadPenguin
Member
From: Toronto, Canada
Registered: 2004-03-03
Posts: 51

Re: how to set keyboard 'hotkeys'?

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 wink
Some stuff to try, anyway! Best of luck.

Offline

#16 2004-06-04 10:37:42

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: how to set keyboard 'hotkeys'?

Bah, who needs extra keys when you have a Model M  wink


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#17 2004-06-05 06:53:06

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: how to set keyboard 'hotkeys'?

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 smile 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

Board footer

Powered by FluxBB