I want to assign some functions to Winkey+ some key.
I used xev to find out something about it.
It’s keycode is 115 on left side and 116 on right side.
Would it be possible to use this button? How? It would be cool cause no app is using it under unixes as far as i know.
a16b03:
I want to assign some functions to Winkey+ some key.
I used xev to find out something about it.
It’s keycode is 115 on left side and 116 on right side.
Would it be possible to use this button? How? It would be cool cause no app is using it under unixes as far as i know.
edulinux.homeunix.org/~n6tadam/f … ifiers.txt
– Thomas Adam
a16b03@localhost ~ $ xmodmap -e "keycode 0x73 = LWin"
xmodmap: commandline:1: bad keysym name 'LWin' in keysym list
xmodmap: 1 error encountered, aborting.
a16b03@localhost ~ $
dam
No, it’s not “damn” – read what I posted to you, rather than guessing. Use xev, and capture its output for the winkey (as per the document already shown to you). What’s the output from ‘xmodmap -pm’ also?
– Thomas Adam
0x73 = 115
I searched in Internet, for X11/keysymdef.h. Seams like smart guys from X.org have removed WIn_L and Win_K
This is from man xmodmap
keysym KEYSYMNAME = KEYSYMNAME …
The KEYSYMNAME on the left hand side is translated into match-
ing keycodes used to perform the corresponding set of keycode
expressions. The list of keysym names may be found in the
header file <X11/keysymdef.h> (without the XK_ prefix) or the
keysym database /usr/lib/X11/XKeysymDB. Note that if the same
keysym is bound to multiple keys, the expression is executed
for each matching keycode.
xmodmap -pm
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71), ISO_Level3_Shift (0x7c)
a16b03@localhost ~ $ xmodmap -e "keycode 115 = Win_L"
xmodmap: commandline:1: bad keysym name 'Win_L' in keysym list
xmodmap: 1 error encountered, aborting.
a16b03@localhost ~ $
a16b03@localhost ~ $ xmodmap -e "keycode 115 = LeftWin"
xmodmap: commandline:1: bad keysym name 'LeftWin' in keysym list
xmodmap: 1 error encountered, aborting.
a16b03@localhost ~ $
Take a look here:
X11/keysymdef.h
and here:
X11/keysymdef.h (old one)
a16b03:
This is from man xmodmap
Please don’t quote the manpage at me. It’s rude. You’ve also failed to give me the output of xev for the keypress I’ve asked for.
– Thomas Adam
Sorry didn’t mean to offend you
KeyRelease event, serial 32, synthetic NO, window 0x1000001,
root 0x155, subw 0x0, time 34004147, (251,388), root:(397,702),
state 0x10, keycode 116 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
This is for Right Win Key
Left win key keycode=115
I mapped it to Left Alt (for testing purposes)
KeyRelease event, serial 32, synthetic NO, window 0x1000001,
root 0x155, subw 0x0, time 34084550, (226,497), root:(372,811),
state 0x18, keycode 115 (keysym 0xffe9, Alt_L), same_screen YES,
XKeysymToKeycode returns keycode: 64
XLookupString gives 0 bytes:
XFilterEvent returns: False
Here’s what i did:
My Alt_R wasn’t used
So I mapped my Win keys to it
# xmodmap -e "keycode 115 = Alt_R"
# xmodmap -e "add mod3 = Alt_R"
Then in FvwmConsole
Key C A 3 Exec xterm
And after pressing Left Win+C xterm appeared
Dam, after
xmodmap -e "keycode 115 = Alt_R"
xmodmap -e "keycode 116 = Alt_R"
xmodmap -e "add mod3 = Alt_R"
I can’t switch to consoles using CTRL+ALT+F…
I tried similar thing and it seams to work
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec xmodmap -e "keycode 115 = Super_L"
+ I Exec xmodmap -e "keycode 116 = Super_L"
Key I A 4 module FvwmIdent
And i can also switch to consoles.
Seams everything is OK (for now)