On Monday 15 January 2001 21:30, Shea Martin wrote:
> I am trying to figure out the key # of my two Windows buttons (win95
> keyboard).  bbkeys homepage says to use the command 'xev', but it is
> not on my system, and the closest *.deb is xevil ->game.

I'm running unstable and I found it in package xbase-clients. I've had a 
go on my keyboard and get this...

Left winkey
KeyPress event, serial 24, synthetic NO, window 0x2600001,
    root 0x31, subw 0x2600002, time 341690521, (33,38), root:(619,60),
    state 0x10, keycode 115 (keysym 0xffe7, Meta_L), same_screen YES,
    XLookupString gives 0 characters:  ""
Right winkey
KeyPress event, serial 24, synthetic NO, window 0x2600001,
    root 0x31, subw 0x2600002, time 341734347, (33,38), root:(619,60),
    state 0x10, keycode 116 (keysym 0xff20, Multi_key), same_screen YES,
    XLookupString gives 0 characters:  ""
Menukey
KeyPress event, serial 24, synthetic NO, window 0x2600001,
    root 0x31, subw 0x2600002, time 341757806, (33,38), root:(619,60),
    state 0x10, keycode 117 (keysym 0xff67, Menu), same_screen YES,
    XLookupString gives 0 characters:  ""

> Also, is there a way to set up bbkeys so that a key will bake it jump
> to a specific workspace?  ie. ctrl + F1 takes me to workspace one, ctrl
> + F5 takes me to workspace five, etc?  Can I do this with bbkeysconf? I
> couldn't figure it out.

>From my .bbkeysrc
KeyToGrab(F1), WithModifier(Control), WithAction(Workspace1)
...
KeyToGrab(F10), WithModifier(Control), WithAction(Workspace10)
KeyToGrab(Left), WithModifier(Control), WithAction(PrevWorkspace)
KeyToGrab(Right), WithModifier(Control), WithAction(NextWorkspace)

I assume this is fairly generic - I lifted my .bbkeysrc from my Mandrake 
setup at work and dropped it into my Debian ~/ at home as Potato was 
qt-less. 

Combining the two...

Just had a go with the xev output, assuming that Meta_L, Multi_key & Menu 
are the codes to use, and dropped the following into .bbkeysrc:

KeyToGrab(Multi_key), WithModifier(None), WithAction(PrevWorkspace)
KeyToGrab(Menu), WithModifier(None), WithAction(NextWorkspace)

...and it works :) I can drop the Left/Right mapping now so bbkeys 
doesn't swap workspaces on me when things get a bit hairy in lxdoom and I 
need to turn *and* fire at the same time;-)

> Thanks for the help,
>
> Shea Martin

No, thank you...I've been wanting to get that going for ages, but hadn't 
seen about xev.

Regards, Martin
-- 
[EMAIL PROTECTED] / [EMAIL PROTECTED]
http://www.dbg400.net DBG/400 - DataBase Generation utilities 
Free test environment tools for the AS/400 and misc other stuff

Reply via email to