[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

Next revision
Previous revision
howtos:window_managers:keyboard_layout [2012/09/25 04:45 (UTC)] – moved from the general howtos namespace mfillpothowtos:window_managers:keyboard_layout [2023/07/24 22:24 (UTC)] (current) tonus
Line 16: Line 16:
  
 As you can see above, I use the UK layout. More keyboard layouts can be found in the directory mentioned above. As you can see above, I use the UK layout. More keyboard layouts can be found in the directory mentioned above.
 +
 +<note>Please note that if you decide not to change the default layout (US) during the installation process, the file ''/etc/rc.d/rc.keymap'' will not be created. If, at a later stage, you need to change it, you will need to create that file, copy the above code and choose one of the keymaps available in the ''/usr/share/kdb/keymaps/'' directory.</note>
  
 =====Keyboard Layout in X===== =====Keyboard Layout in X=====
Line 40: 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 59: 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.
Line 75: Line 105:
 ===KDE=== ===KDE===
  
-[[Keyboard layout in KDE]]+[[.keyboard_layout_in_kde|Keyboard Layout in KDE]]
  
 ===Xfce=== ===Xfce===
  
-[[Keyboard layout in Xfce]]+[[.keyboard_layout_in_xfce|Keyboard Layout in Xfce]]
  
 ===Fluxbox=== ===Fluxbox===
  
-[[Keyboard layout in Fluxbox]]+[[.keyboard_layout_in_fluxbox|Keyboard Layout in Fluxbox]]
  
 ===i3=== ===i3===
  
-[[Keyboard layout in i3]]+[[.keyboard_layout_in_i3|Keyboard Layout in i3]]
  
 ====== Sources ====== ====== Sources ======
 howtos:window_managers:keyboard_layout ()