[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:window_managers:keyboard_layout [2012/10/01 20:57 (UTC)] – [Keyboard in the Console] Added a note about rc.keymap sycamorexhowtos:window_managers:keyboard_layout [2023/07/24 22:24 (UTC)] (current) tonus
Line 42: Line 42:
 <code><merge key=“input.xkb.layout” type=“string”>gb</merge></code> <code><merge key=“input.xkb.layout” type=“string”>gb</merge></code>
  
-===Slackware 13.37===+===Slackware 13.37 and 14===
  
 From Slackware 13.37 on, ''udev'' has taken over keyboard mapping functions and the procedure has changed as well: From Slackware 13.37 on, ''udev'' has taken over keyboard mapping functions and the procedure has changed as well:
Line 61: Line 61:
         Option "XkbOptions" "terminate:ctrl_alt_bksp"         Option "XkbOptions" "terminate:ctrl_alt_bksp"
 EndSection</code> EndSection</code>
 +
 +You also need to restart X for the change to take effect.
 +
 +===Slackware 15.0===
 +
 +From Slackware 15.0 on, since ''libinput'' can be used as well, there's two files you can edit:
 +
 +<code>cp /etc/X11/xorg.conf.d/90-keyboard-layout-evdev.conf /etc/X11/xorg.conf.d/</code>
 +and
 +<code>cp /etc/X11/xorg.conf.d/91-keyboard-layout-libinput.conf /etc/X11/xorg.conf.d/</code>
 +
 +Edit these files specifying the layout (eg. ''gb''):
 +
 +<code>nano /etc/X11/xorg.conf.d/90-keyboard-layout-evdev.conf</code>
 +
 +<code>Section "InputClass"
 +        Identifier "keyboard-all"
 +        MatchIsKeyboard "on"
 +        MatchDevicePath "/dev/input/event*"
 +        Driver "evdev"
 +        Option "XkbLayout" "gb"
 +        #Option "XkbVariant" ""
 +        Option "XkbOptions" "terminate:ctrl_alt_bksp"
 +EndSection</code>
 +
 +And same with:
 +
 +<code>nano /etc/X11/xorg.conf.d/91-keyboard-layout-libinput.conf</code>
  
 You also need to restart X for the change to take effect. You also need to restart X for the change to take effect.
 howtos:window_managers:keyboard_layout ()