(because a realy don't see why this so f.... key is on the keyboard with all numpad num keys it's realy annoying )
and to make it Home key so that I can navigate easier. I did all things that are described by the others :
- using xev to discover my key
- using xmodmap to remap them with some file in my home directory
- it works as long as I logged out and logged in and then again
- i tried using .xinitrc , absolutly pointles , .xprofile and etc. notting works
- the only thing that works was running sh file (that is of course executable ) from the startup programs (Preferences/Startup applications)
- and it works every time I restart my computer end etc.
- till I didn't log out and log in , or lock my screen
- realy annoying
Now I'm happy because I found this forum and read three important things:
- first that some users tried very hard and didn't success in finding a way to start something with the start of the system
- second very important thing is that something is overwriting my xmodmap settings
- what we configurate using the settings is not using xmodmap but xkb and every thime we enter into reloading session this xkb probably is recompiling
So I should not use xmodmap but XKB.
Here is some code:
Code: Select all
krasen@krasen-Lenovo-Y50-70 ~ $ setxkbmap -print
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+bg(phonetic):2+inet(evdev)+group(alt_shift_toggle)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc105)" };
};
krasen@krasen-Lenovo-Y50-70 /usr/share/X11/xkb/keycodes $ grep -r "pc105" ./
./sgi_vndr/indy: include "sgi_vndr/indy(pc105)"
./sgi_vndr/indy:xkb_keycodes "pc105" {
./evdev: # Added for pc105 compatibility
Code: Select all
/usr/share/X11/xkb/
<HOME> = 110;
<NMLK> = 77;
So after my edit it looks like this:
<HOME> = 110;
<HOME> = 77;
It's so simmple but all the time it was more logical for me assignment to happen to HOME and not to the 77. Whatever...
After you edit this file you should delete the compiled files in /var/lib/xkb (delete all .xkm files) and to run again:
Code: Select all
setxkbmap
EDIT 1:
Doing this change above is actualy will make the HOME key stop working. The first 110 key will not work. Only 77 key will work. So this is only usable if you have broken key. So if you realy want to make it right you should not edit the files in
Code: Select all
.../xkb/keycodes
Code: Select all
.../xkb/symbols
Code: Select all
setxkbmap -print
pc , us and bg
So if you want for example to do this change for remaping Num Lock with Home key you should search for NMLK in the pc file and edit it like this
Code: Select all
key <NMLK> { [ Home ] };
Search for your key in one of the pc,us or bg (in my case) files and edit it.
Code: Select all
key <KP7> { [ Home, Home,
Home, Home ] };
http://web.archive.org/web/200904240541 ... kb/xkb.pdf