Questions tagged [xkb]

The X keyboard extension, or XKB, defines the way keyboards codes are handled in the X Window System.

65 questions
19
votes
4 answers

How to make all applications respect my modified xkb layout?

I don't like jumping between the main keyboard and the movement keys, so I added the following to my xkb layout file. hidden partial xkb_symbols "movement" { key { [ NoSymbol, NoSymbol, Up, Up ] }; key { […
nonpop
  • 393
19
votes
1 answer

What is my X11 doing with Ctrl-Period and how can I disable it?

How do I disable whatever X-window-system-wide setting is intercepting Ctrl-Period for some kind of special input popup? More detail: I'm trying to bind an emacs command to Ctrl-Period (C-.), which worked fine on a previous system. On this new…
Steve
  • 293
12
votes
1 answer

Setting Hyper and Super modifiers for certain keys with setxkbmap or xmodmap

Problem: I want to modify/redefine my keyboard layout (pc105 se) so that when I press certain keys with mod3 (super) and mod4 (hyper), a different character is returned than usual. E.g. Keycode 61 produces 'minus' (-) when pressed normally and…
Xyz
  • 361
10
votes
1 answer

xkb set keyboard level 3 chooser to ctrl+alt

The title says it all: I'm interested to mimic the Windows behavior, where Left Ctrl + Left Alt acts as a 3rd level chooser. This is relatively important to me, because, as a programmer, on my keyboard layout, important symbols such as {,[,] or }…
Vlad
  • 121
10
votes
1 answer

What is the function of the modifier keys in xmodmap?

When I run xmodmap, I get something like this shift shift_l (0x32), shift_r (0x3e) lock control control_l (0x25), control_l (0x42), control_r (0x69) mod1 alt_l (0x40), alt_r (0x6c), meta_l (0xcd) mod2 num_lock…
9
votes
1 answer

How to get a list of valid X11 names for characters

I am trying to customize my own keyboard layout. I have been messing around with the files in: /usr/share/X11/xkb/symbols/ I see that, e.g. /usr/share/X11/xkb/symbols/us contains: ... key { [ grave, asciitilde, dead_tilde, …
norok2
  • 326
7
votes
1 answer

xkb - Remapped modifiers still work as modifiers

I'm using xkb to create my own keyboard layout. I have a slight problem, though. key {[ Shift_L ]}; key {[ Shift_R ]}; key {[ comma , semicolon , bar ]}; key {[ period , colon , period ]}; modifier_map Shift {…
lydell
  • 381
7
votes
1 answer

XKB - remap arrow keys and preserve shift behaviour to select text

I realize arrow key remapping is an old problem, however I cannot seem to find a good solution that lets me select text with SHIFT + remapped keys as I would do with the vanilla arrow keys. For instance, if I remap Caps Lock to ISO_Level3_Shift and…
7
votes
1 answer

How to disable dead keys in xkb (us / intl)

I am using the US International layout on X11 (-xkblayout us -xkbvariant intl). I would like to disable the dead keys, but without switching back to the US default layout. (I need the German Umlaute and a couple other characters from the Intl…
DevSolar
  • 4,560
6
votes
1 answer

How to know which modifier keys are which in X11?

I have X11R7-based desktop linux. I want to debug key modifiers of my keyboard. I have some left and right controls, alts, metas, etc., but for some reason (1) I'm not quite sure which is which from XKB point of view. So, how do I debug modifiers on…
6
votes
1 answer

How to make Control-j works as Return without Control bit set(!) using xkb [and|or] xmodmap

It looks like extremely convenient for me to use Control-j instead of Return in xterm and vim, and I want to use this sequence for all X apps. It can be easily done using xkb by remapping ISO_Level5_Shift to the Control key, and setting Return as a…
Vasily
  • 131
6
votes
1 answer

Show keyboard geometry/model in gnome

This question is mostly for curiosity about keyboard stuff in Gnome and/or XKB. The below was done on Ubuntu Gnome 16.04, but I believe things are they same in later Ubuntu and Gnome versions as well. When adding “Input Sources” (keyboard layouts)…
lydell
  • 381
5
votes
2 answers

How to deploy a custom keyboard layout?

I was using the Bulgarian New Phonetic layout for cyrillic, but I am accustomed to touch-typing on a QWERTZ layout, so all the symbols are in the wrong place. So I decided to make my own layout in KDE. I found the /usr/share/X11/xkb/symbols files,…
rumtscho
  • 4,084
5
votes
1 answer

xkb - difference between modifier_map and SetMods

In the xkb guide on archlinux: https://wiki.archlinux.org/index.php/X_keyboard_extension we see this configuration to set up LWIN as an ISO_Level3_Shift xkb_symbols { key { [ISO_Level3_Shift ] }; modifier_map Mod5 {…
4
votes
2 answers

How to keep per-keyboard layout settings?

I am using xmodmap (and sometimes xkbcomp instead) to adjust my keyboard layout (e.g. mapping Caps Lock to the Mod3 modifier). When I plug a USB keyboard into my laptop or insert a YubiKey (which acts like a keyboard), the settings for my laptop…
nh2
  • 977
1
2 3 4 5