Questions tagged [xkb]
The xkb tag has no usage guidance.
63
questions
0
votes
0
answers
22
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]="...
0
votes
0
answers
24
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 ...
1
vote
1
answer
84
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 ...
0
votes
1
answer
203
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 ...
1
vote
1
answer
87
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;
...
1
vote
0
answers
244
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, ...
1
vote
1
answer
141
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 ...
14
votes
1
answer
2k
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 ...
0
votes
1
answer
306
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 ...
4
votes
1
answer
380
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> { [...
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 ...
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-...
7
votes
1
answer
3k
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 <...
1
vote
1
answer
516
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 ...
1
vote
1
answer
587
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/...
0
votes
0
answers
18
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 ...
1
vote
0
answers
57
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 ...
2
votes
3
answers
213
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, ...
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 ...
1
vote
0
answers
154
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 ...
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.
...
0
votes
1
answer
971
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 ...
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,...
0
votes
1
answer
288
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:(...
1
vote
1
answer
782
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 ...
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 "...
2
votes
1
answer
593
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 (/...
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), ...
1
vote
1
answer
871
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 ...
3
votes
0
answers
715
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,...
1
vote
0
answers
269
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> { [ ...
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, ...
1
vote
2
answers
319
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 "...
0
votes
2
answers
994
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 ...
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.
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 ...
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, ...
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 ]};
...
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 ...
2
votes
1
answer
680
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 ...
2
votes
3
answers
354
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
5
votes
2
answers
2k
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....
3
votes
1
answer
2k
views
Remapping keys using xkb
My return key is physically dead.
I'm running xubuntu. I am able to remap the AltGr to return using xmodmap. However when I reload xmodmap, either via shell or automatically during boot, it will hang ...
12
votes
1
answer
7k
views
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 ...