View previous topic :: View next topic |
Author |
Message |
demize n00b
Joined: 05 Jun 2016 Posts: 3
|
Posted: Sun Jun 05, 2016 7:41 pm Post subject: Making X11 use the Microsoft numpad behavoir |
|
|
I just setup Gentoo on my laptop, and since it's a laptop keyboard I tend to use Shift+Numpad 7 to select from my cursor to the beginning of a line. Unfortunately, the default behavior of X11 is to make that key combination type "7" instead, which is pretty far from what I actually want it to do. There is an option that changed this behavior in OpenSUSE and in Ubuntu (when I used them), but this doesn't work here despite being picked up by X11:
My 00-keyboard.conf file:
Code: |
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105+inet"
Option "XkbOptions" "terminate:ctrl_alt_bksp,numpad:microsoft"
EndSection
|
The output of localectl showing that the numpad:microsoft option is picked up:
Code: |
System Locale: LANG=en_US.utf8
LC_COLLATE=C
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp,numpad:microsoft
|
Further, there are no errors in /var/log/Xorg.0.log about this option (but it does show that it was picked up from the file). |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Jun 06, 2016 2:01 pm Post subject: |
|
|
Does it work if you run Code: | $ setxkbmap -option numpad:microsoft | ?
What if you remove terminate:ctrl_alt_bksp from xorg.conf? |
|
Back to top |
|
|
demize n00b
Joined: 05 Jun 2016 Posts: 3
|
Posted: Tue Jun 07, 2016 1:38 am Post subject: |
|
|
appears to work, but only if I run it manually. I've tried putting it in ~/.profile, ~/.xinitrc, /etc/gdm/PostLogin/Default, but after a login it still defaults to the behavior I don't want.
Removing terminate:ctrl_alt_bksp from xorg.conf doesn't change anything either. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Tue Jun 07, 2016 7:46 am Post subject: |
|
|
My theory is then that you are using a desktop environment which interferes with your keyboard settings. |
|
Back to top |
|
|
demize n00b
Joined: 05 Jun 2016 Posts: 3
|
Posted: Tue Jun 07, 2016 11:11 am Post subject: |
|
|
I found a setting in GNOME Tweak Tool that fixed it (Typing->Miscellaneous Compatibility Options->Numlock on:...). |
|
Back to top |
|
|
|