Questions tagged [xkb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Use XKB to work around stray key events?

Due to complex infrastructure, I am experiencing an issue where hitting AltGr on my keyboard results in a stray Control_L signal being received on the Linux desktop on the receiving end. The issue has ...
ketil's user avatar
  • 121
2 votes
0 answers
139 views

How can I have numpad always writing numbers by default and arrows with AltGr regardless of NumLock state in GNOME?

I want to set the numpad so it by always writes digits regardless of the state of NumLock, but it writes arrows and math operators with AltGr. In GNOME, I can set some options for the keyboard layout ...
matj1's user avatar
  • 99
0 votes
0 answers
55 views

xkb keyboard layout not working on certain software

I use a custom keyboard layout which I set up by modifying /usr/share/X11/xkb/symbols/custom as follows: default partial alphanumeric_keys xkb_symbols "custom" { name[Group1]="...
amri's user avatar
  • 1
0 votes
0 answers
44 views

x11 modifier "key down" action results in immediate "key down" + "key up", preventing proper usage of the modifier

I've used used the following command to remap my caps lock to Hyper_L setxkbmap -option caps:hyper It didn't seem to be working so I opened up xev to see what was happening when I pressed, for ...
kriipke's user avatar
1 vote
1 answer
129 views

XKB layout, remaping key LSGT is disabling the less key

I am creating a custom XKB layout. My european keyboard has a physical less/greater key which I want to be mapped as 3rd level modifier. I used sucesfully include level3(lsgt_switch) However this also ...
n0tis's user avatar
  • 133
0 votes
1 answer
311 views

Binding unicode λ symbol (code+glyph) to key combination

I would like to type Unicode λ in a clear way (key L and alt modifier, for example) and not pressing SHIFT+CTRL+u03bb each time (or doing a poor trick like copy/paste). I've tried a lot of ways to ...
Daniel Bandeira's user avatar
1 vote
1 answer
131 views

Map XKB level without preserving modifier

I'm trying to map Super+V to XF86Paste: default partial xkb_types "mine" { type "MY_SHIFT_SUPER" { modifiers = Shift+Mod4; map[None] = Level1; map[Shift] = Level2; ...
OJFord's user avatar
  • 631
1 vote
0 answers
333 views

Dead keys are not working in custom XKB layout

I use a custom XKB layout derived from stock layout hr(us): { name[Group1] = "My HR Layout"; include "hr(us)" key <AB09> { [ NoSymbol, NoSymbol, ...
s0me0ne's user avatar
  • 111
1 vote
2 answers
263 views

XKB configuration file documentation?

I'm trying to debug some keyboard issues on an Ubuntu Linux desktop. I'm reading XKB configuration files at this point, but I have yet to find the documentation on these files. Instructions like this ...
ketil's user avatar
  • 121
16 votes
1 answer
3k views

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 ...
Steve's user avatar
  • 263
0 votes
1 answer
413 views

How to pass xkb options to ibus (and use them with m17n engines)?

I am using ibus for input in different languages (mostly I use English and Russian, but also sometimes also Esperanto, Ukrainian, Greek, German, French etc). For English I use the xkb:us::eng engine ...
Goren's user avatar
  • 1
4 votes
1 answer
489 views

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 <LWIN> { [...
Damien Robert's user avatar
0 votes
1 answer
1k views

How to distinguish Alt and ISO_Level3_Shift in xkb?

I am using a device with a builtin keyboard and run ARM Debian on it with i3 as Window Manager. There is one Alt key (keysym Alt_L), and two keys for special characters that look similar to AltGr ...
Matf's user avatar
  • 1
1 vote
0 answers
1k views

Shuffling "Alt"/"windows"/"Alt Gr" on just USB keyboard (and possibly not laptop keyboard)

Due to unfortunate misunderstanding in the label reading, I have ordered and received a Das Keyboard 4... for Mac. Which would have been nice if I didn't use a KDE Neon desktop (which is a KDE-...
Rémy's user avatar
  • 21
9 votes
1 answer
4k views

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 <...
norok2's user avatar
  • 306
1 vote
1 answer
744 views

How do I install a new custom keymapping in XKB?

I am attempting to install a custom symbols file in my keyboard mapping in XKB, as found here. I would like to overwrite how the J key is handled (the first step in emulating a numpad, but for now I ...
sgbrown's user avatar
  • 221
1 vote
1 answer
662 views

How to revert keyboard layout switching shortcuts after setting them with xkb's /etc/default/keyboard XKBOPTION in Ubuntu 18

I wanted to have two keyboard layouts (one for english and one for spanish), and add a shortcut for switching between them. The solution I chose was to set the following lines in my /etc/default/...
TZubiri's user avatar
  • 189
0 votes
0 answers
19 views

Change Individual Keys on a Second Keyboard Only

Without using xkbcomp. An alternative to xkb, because I can't get xkbcomp to work with java applications. Any suggestions? I'm stumped. Trying to get xkbcomp to work with java applications. Terminal ...
lowao's user avatar
  • 11
1 vote
0 answers
63 views

xkb: Keymapping reverts backs with a Java App

I am using a xkbcomp keyboard config for a second keyboard, but I am pretty sure it is reverting back to the default setup with java application. IE: Minecraft. Whenever I try to use the gamepad "the ...
lowao's user avatar
  • 11
2 votes
3 answers
234 views

Some X apps accept my non-Latin characters, some ignore them

I'm using an X environment with a dual keyboard layout: us,il. Now, in some of my applications, and in the il layout, Hebrew characters don't register, while punctuation marks do. In other apps, ...
einpoklum's user avatar
  • 9,393
4 votes
1 answer
2k views

Getting XKB remaped arrow keys (ISO_Level3_Shift + HJKL) to work properly with the WIN key under X11

I've seen some posts on how to remap arrow keys under X11 with XKB, but although they work mostly fine, no method so far (except using different groups, which become an hassle to manage with Gnome ...
jbssm's user avatar
  • 141
1 vote
0 answers
173 views

x11 layout definition additional modifiers

I am trying to create a new keyboard layout which has multiple layers. I succeeded in using Mod3 to Mod5 to implement those layers, but I would rather not use the ModX bits because applications do use ...
John Smith's user avatar
5 votes
1 answer
3k views

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. ...
lydell's user avatar
  • 371
0 votes
1 answer
1k views

Non-toggling caps lock with xkmodmap or xkb?

Is there a way to configure the caps lock button so it's not toggling? That is, so that it only applies the caps lock state while held down, and when released everything reverts to normal. The ...
David Given's user avatar
0 votes
1 answer
1k views

Bash script that automatically changes mouse and keyboard layouts based on active window

UPDATE - Fully working script located at the bottom of my answer for anyone who isn't interested in the process of getting there. I've been trying to write a bash script that makes use of xbindkeys,...
DreadPirateLynx's user avatar
0 votes
1 answer
302 views

Why does my left alt key trigger escape in linux?

For some reason, my left Alt key triggers escape. I've confirmed this using xev: KeyPress event, serial 37, synthetic NO, window 0x2e00001, root 0xf6, subw 0x0, time 299729, (1524,198), root:(...
Ben Davis's user avatar
  • 185
1 vote
1 answer
807 views

xfce keyboard layout panel plugin gets stuck

I use the xfce "Keyboard Layouts" panel plugin to switch between english and french layouts. Sometimes it gets stuck and clicking the button and alt-shift stops working. The only fix I have found is ...
Marcel's user avatar
  • 288
1 vote
0 answers
1k views

How to customize user keyboard layout(on Fedora 24)

I want to add symbols to the third level(AtlGr+<key>) of my keyboard layout(which is French (Canada)). I've written an xkb symbols snippet: default partial alphanumeric_keys xkb_symbols "...
Charles Langlois's user avatar
2 votes
1 answer
661 views

Fixing XKB layout

Long story short, I was trying to make a custom layout (hybrid Polish-Norwegian, adding åøæ on level 3 and 4 for |';), and somehow messed up the configuration. Despite reverting the offending file (/...
Abu Dhabi's user avatar
  • 151
8 votes
1 answer
5k views

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), ...
user128063's user avatar
1 vote
1 answer
900 views

Swap Left Alt and Right Alt on Kinesis Keyboard (or Any Keyboard)

Let me back up my problem a little bit for context. I am trying to use the same modifier-key-plus-letter combination between both vim and tmux so that, if I have a vim pane/whatever on one side and a ...
Californian's user avatar
3 votes
0 answers
753 views

How to map space to control and unmap win from Hyper_L using xkb/setxkbmap

I am trying to make my space act as control by default (and as space when tapped by using xcape) and to make capslock act as the only hyper modifier. I have a working configuration for this in xmodmap,...
joelostblom's user avatar
  • 2,549
1 vote
0 answers
303 views

How to replace menu key with capslock and capslock with left control using xkb

I followed the instruction here by defining my own xkbsymbols partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <COMP> { [ Caps_Lock ] }; replace key <CAPS> { [ ...
godblessfq's user avatar
19 votes
4 answers
4k views

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 <AD08> { [ NoSymbol, ...
nonpop's user avatar
  • 383
1 vote
2 answers
338 views

How to add additional control key?

I am using xkb to add an additional control key as follows: key <HENK> { [ Control_R ] }; However, it does not work. I even tried xmodmap without success: xmodmap -e "...
milarepa's user avatar
  • 299
0 votes
2 answers
995 views

QT Application on Debian 7 ignores keyboard

I'm trying to get a teamspeak 3 client to run over a tightvnc -> xrdp session on Debian 7. As far as I know, TS3 uses QT as its GUI toolkit. I can open the application and the window gets shown, but ...
RikuXan's user avatar
  • 334
3 votes
1 answer
1k views

Multiple XkbOptions in xorg.conf

How should I write multiple XkbOptions in xorg.conf? I've tried "option,option,option", "option, option, option", "option option option" and none of these worked - only the first option was executed.
eregus's user avatar
  • 433
10 votes
1 answer
5k views

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 ...
Vlad's user avatar
  • 111
2 votes
2 answers
1k views

Make Scroll Lock toggle Mouse Keys on home row

This is what I want: I press Scroll Lock on my keyboard. The Scroll Lock LED on my keyboard lights up. The keys around the right-hand home row now controls the mouse pointer (moving it, clicking, ...
lydell's user avatar
  • 371
7 votes
1 answer
2k views

xkb - Remapped modifiers still work as modifiers

I'm using xkb to create my own keyboard layout. I have a slight problem, though. key <AE04> {[ Shift_L ]}; key <AE07> {[ Shift_R ]}; key <LFSH> {[ comma , semicolon , bar ]}; ...
lydell's user avatar
  • 371
4 votes
2 answers
1k views

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 ...
nh2's user avatar
  • 927
2 votes
1 answer
754 views

Configuring xkb so that left winkey is an additional left alt

I'm never using the windows key but for whatever reason on my laptop keyboard I often hit them by mistake trying to hit ALT. How can I configure xkb so that the left windows key acts as an additional ...
Cedric Martin's user avatar
2 votes
3 answers
359 views

How can I get more control over the keyboard layout than XKB offers?

I am starting to run up against the limits of XKB, the keyboard subsystem of the X window system. I would like to know if there is a way I can gain more flexibility. Here are examples of the kind of ...
Owen's user avatar
  • 835
6 votes
1 answer
1k views

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 ...
Vasily's user avatar
  • 131
2 votes
1 answer
2k views

Fixing keyboard layout on Xubuntu (can't use AltGr)

I'm going crazy with my laptop's keyboard. My layout is latin spanish, and works just fine. However at some time of the morning some magic auto-reconfiguration makes my layout implode and I can't use ...
ichigolas's user avatar
  • 123
1 vote
1 answer
1k views

Custom keyboard map in Gnome (on ArchLinux)

I've just switched from LXDE to Gnome and I'm struggling with configuring the keyboard the way I want it. The Swedish keyboard layout is painful when programming (e.g. {[]} require right-hand finger ...
Magnus's user avatar
  • 4,376
7 votes
1 answer
2k views

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 ...
dgirardi's user avatar
4 votes
1 answer
2k views

Using a custom keyboard map

I'm trying to not overwrite /usr/share/X11/symbols/us, even thought I've been doing that for years. So I added to ~/xkb/jpic, a copy of dvorak-alt-intl from /usr/share/X11/symbols/us, since that's ...
jpic's user avatar
  • 131
6 votes
1 answer
3k views

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 ...
DevSolar's user avatar
  • 4,490
5 votes
2 answers
3k views

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....
rumtscho's user avatar
  • 3,994