We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [xkb]

xkb is the abbreviation for the X Keyboard Extension used to describe and configure differ keyboard layouts, etc. under X11.

128 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
1answer
812 views

Numpad emulation

My new laptop (Dell Inspiron 5578) has no numeric pad. Many laptops without dedicated numpad keys have numpad accessible through Fn, but not this one. When I run xev and try to use traditional Fn ...
8
votes
1answer
195 views

XKB multi-layout layout specific Capslock behaviour oddity

I have two custom keyboard layouts, one a modified version of the us (which I have called vi,) one a modified version of the dk (which I have called da.) Both are registered properly, and work. After ...
8
votes
1answer
2k views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
5
votes
0answers
426 views

Does xkb support complex key combinations such as mapping s+hjkl to left, down, up, and right?

I'm trying to configure xkb to make it register left, down, up, and right arrow when I hold s (the letter) and press h, j, k, or l (similar to Karabiner on MacOS). This will allow navigation in vim or ...
5
votes
1answer
2k views

setxkbmap switches between 2 out of 3 layouts

Issuing that command: setxkbmap -layout "us,ua,ru" -variant ",winkeys" -option "grp:shift_caps_toggle,grp_led:scroll" -model pc105 -rules xorg When hitting Caps Lock+Shift I'm switching between ...
4
votes
1answer
775 views

Custom keyboard layout without root

What are the steps to setting up a custom keyboard layout in X11 without root access? I know it's possible, based on this answer, but I get Error loading new keyboard description whenever I try using ...
4
votes
0answers
167 views

How to simulate mouse press with shift in xkbcomp

I have a mouse with a small built-in keyboard. I'd like to map one key as combination of "Shift-MiddleButton". This combination is used in Blender for navigation. I don't know how to emulate ...
4
votes
0answers
747 views

how to remap super keys?

I'm playing around with keyboard settings, and wanted to remap my windows keys to tab, for convenience. So I tried (133 is the left super key on my keyboard) xmodmap -e "keycode 133 = Tab Super_L" ...
4
votes
0answers
474 views

GTK_IM_MODULE=xim breaks dead keys in GTK and QT applications

I'm using XIM to have the compose key take into account my ~/.XCompose file (it's the only input method that takes it into account, all the others I tried use hard-coded tables). However, it is ...
4
votes
0answers
406 views

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

I followed the instruction here by defining my own xkbsymbols (Use setxkbmap to swap the Left Shift and Left Control) partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <...
3
votes
0answers
258 views

How to make ISO_Level5_Shift work?

I wanted to add more levels to my keyboard layouts, so I decided to enable level5 key. I’ve already had level3 on Menu, and would like to map RAlt to ISO_Level5_Shift. However, setxkbmap has no ...
3
votes
1answer
218 views

xkb: inverted keyboard layout indication

I use scroll LED as keyboard layout indicator (off - English, on - Russian). It works great on the PS/2 keyboard at home. And it works in general on my work computer (USB keyboard). But sometimes I ...
3
votes
0answers
76 views

Custom keyboard layout not used verbatim

I've created a custom keyboard layout, ~/dot/c98.xkb. It looks like this: // vim: ft=xkb xkb_keymap { xkb_keycodes "k" { include "evdev(evdev)" }; xkb_geometry "g" { include "pc(pc105)" }; ...
3
votes
0answers
1k views

Map right Alt to Ctrl key

I use Linux Mint Mate 17, which is based on Ubuntu 14.04, and I want to map my right Alt to act as a Ctrl key since I can reach it with my right thumb which is more comfortable. How can I do that? I ...
3
votes
0answers
113 views

How to trace xkbmap changes?

I am running Fluxbox on an Ubuntu (14.04.5) NoMachine server. I have a very simple startup file: fluxbox="$HOME/.fluxbox" stderr="$fluxbox/stderr" (umask 077; > "$stderr") exec 2> "$stderr" ...
3
votes
0answers
900 views

Xfce Keyboard Layout change Ctrl+Space

Ok, so I've been googling this for almost a week now...without any luck. When I open the Keyboard settings pane, the options are only limited to (ones that have "Space" in them) Alt+Space and Super+...
3
votes
0answers
85 views

How can I stop using setxkbmap groups from snagging modifier keys?

I have several different keyboard maps that I can switch between to my heart's content using: setxkbmap dvp Then when I want another one: setxkbmap ptf Etc. This works, but I'd rather use the ...
3
votes
0answers
248 views

alt-shift toggles keymap when part of a shortcut

I have two xkb layouts, and use Alt+Shift to toggle between them: setxkbmap "fr,us" -option grp:alt_shift_toggle However, when I press a shorcut which contains Alt+Shift, the shortcut isn't taken ...
3
votes
1answer
1k views

Adding a custom keyboard layout (and setting it as the default)

I'm on Arch Linux with i3, and I'm trying to create a personalized layout with IPA (International Phonetic Alphabet) symbols for use in linguistic research. I'm also using iBus for Chinese language ...
3
votes
0answers
393 views

How do I get a list of keys currently loaded with XKB?

I am writing an evdev-reliant daemon that needs to know the complete keyboard layout currently in use. Getting the properties of the current XKB layout is easy. You just use setxkbmap -query or ...
3
votes
2answers
213 views

Is there a program to monitor xkb state?

I'd like to show the state of xkb on status bar of (preferably any) window manager. State should include LED-indicators (both physical and virtual), modifier state, and both keycode and keysym each ...
3
votes
0answers
203 views

XKB - Clearing locked modifiers

I've been having some trouble creating a custom keymap with XKB configuration. I would like to have a Shift key that locks when called with a specific modifier and can be pressed again to toggle the ...
3
votes
0answers
109 views

Dvorak layout, but QWERTY with Ctrl or Alt modifiers

I comfortably type using a keyboard layout named Light Developer's Dvorak, which I have further customized (negligibly) for myself. How do I configure, so that pressing Ctrl, Alt, etc. will read the ...
3
votes
0answers
414 views

Will booting ubuntu in recovery mode use default keyboard layout?

I have a chromebook with Ubuntu 15.04 and I need to customize some of my keyboard keys in xkb. Unfortunately while doing so I managed to disable my keyboard and needed to boot from live USB to revert ...
3
votes
0answers
880 views

xkbmap remap PrtScr and Insert Keys to Home and Escape

I've been fumbling with xkbmap for a while, and I can't figure out how to remap the Print Screen button to Home. It's as if the us keymap just doesn't mention the PRSC key code at all. I can't use ...
3
votes
0answers
169 views

Why won't my custom layout work?

I'm trying to create a custom layout that I can use for various symbols. For now, I just copied the contents of gr(bare). However, the layout does not appear to work. When I press Caps Lock, the ...
3
votes
1answer
528 views

How can the xkb layout settings be simplified?

The question is, if there is a way to simplify the structure of the xkb configuration related to keyboard layouts? As explained in further detail below there are 5 independent places in which a ...
3
votes
0answers
161 views

Unmaping BKSP and RTSH in Xorg

I am trying to improve my typing habits, I have Backspace located elsewhere on my keyboard layout, but I would like to unmap the standard backspace key while I learn to use the one on my keyboard. In ...
3
votes
0answers
486 views

Where are xkb options defined?

I'm not too experienced with Linux on personal computers, but I've recently installed Debian Jessie on my laptop (using GNOME 3). It's a Macbook, so there's a command key on the keyboard. Initially, I ...
3
votes
0answers
330 views

XKB: Can I have an eight-level key and have Ctrl participate in selecting it’s levels?

Is there an XKB way to generate a key event, form a normal key combo which includes Ctrl without having the ctrl modifier bit set? Or the same question asked in another way: Can I have an eight-level ...
3
votes
0answers
536 views

Remapping Left Control <LCTL> in xkb changes behavior of Alt + Left Shift

For some reason pressing any alt key (including <MENU>) together with <LFSH> toggles "Switch windows of an application". This can be turned off by commenting out key <LCTL> { [ ...
3
votes
0answers
118 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
2
votes
0answers
43 views

Problem remapping function buttons on Ubuntu 18.04 / i3 / xkb

I have been trying to remap my functions keys on my X1 Carbon 6th gen, since there's no Media Keys on the default keyboard. Until now, I have remapped F8, F9 and F10 to respectively XF86AudioPrev, ...
2
votes
0answers
34 views

Remap keys including a modifier

I use an alternative german keyboard layout on Ubuntu 18.04: ~$ setxkbmap de koy Now I want to swap three keys (Mod3 → f → ß → Mod3) as shown in that picture: This are the keycodes for these keys: ...
2
votes
0answers
124 views

Execute script on external keyboard connection

EDIT: This is NOT a duplicate because the linked question is about external USB drives, not keyboards. The suggested command udevadm info -a -n sdb does nothing in helping to find the corresponding ...
2
votes
0answers
476 views

How to alter level 3 meaning of keys with XKB

I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file ...
2
votes
0answers
53 views

Swapping sticky modifiers

You can turn on sticky modifier keys with xkbset sticky but is it possible to get a sticky Hyper when tapping Super and vice versa?
2
votes
0answers
210 views

Turning the Escape key into a modifier that still acts as Escape when tapped

I use a tiling window manager (xMonad at the moment), and due to this I need a key that acts as the ‘control key’ for window management. Whenever I use a keyboard with Windows/Super/Mod4 keys, I use ...
2
votes
0answers
384 views

Getting modifier keys (Alt, Ctrl) to work together with ISO_Level3_Shift

I have altered quite a bit my keyboard layout using two levels of shift keys. Basically now, I have 3 layers on my keyboard. In order to do so I used the ISO_Level3_Shift and ISO_Level5_Shift. ...
2
votes
0answers
65 views

Xkb to replace § in the Slovak keyboard layout to ď/Ď

I want to replace § in the Slovak keyboard layout (it's currently ' - the first key to the right from my right pinky finger) on the English keyboard or keycode 48 on most keyboards) with the more ...
2
votes
0answers
279 views

Xkb: Overlay vs HotKeys

I'm configured xkb to select each keyboard layouts with unique hotkey (en = Win+1, de = Win+2, jp = Win+3) replace key <I156> { [NoSymbol], actions[Group1] = [ LockGroup(group=1) ] }; replace ...
2
votes
1answer
580 views

Why is AltGr remapped from keycode 108 to keycode 92 (LVL3) and where?

While building my own xkb config file, I managed to make AltGr dysfunctional. Bottom line is: Removing this three lines (one is actually a whole block) ... xkb_keymap { xkb_keycodes "...
2
votes
0answers
181 views

How to find the version of xkb on my machine

A new keyboard layout of interest was recently checked into xkb. Since current version of xkb is at 2.19, I think my layout will be shipped with 2.20. How do I find out what version of xkb is ...
2
votes
0answers
432 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 ...
2
votes
0answers
280 views

XKB: enable a LED for specific layout

There's a widely used XKB option grp_led:scroll to light ScrollLock LED for cycling between layouts. Unfortunately, it doesn't work with ibus ATM because the implementation makes XKB consider every ...
2
votes
0answers
120 views

XKB Complete Key Definition

I tried defining something like this: xkb_types "complete" { type "COMPLETE_LEVEL" { modifiers = Alt+Shift+Control+Super; map[None] = Level1; map[Shift] = Level2; map[Control] = ...
2
votes
0answers
163 views

Map ctrl+key different from typing key in xkb or xmodmap

Is it possible to map ctrl+key different from regular typing key in linux? I have done it in windows with MSKLC but can't figure out how to do it in linux. E.g. I want to type dvorak but have regular ...
2
votes
0answers
98 views

Using overlay feature much like a shift

Using XKB, how could I make the keyboard send the keysym <RTRN> when I press Ctrl-J? The goal is to make sure that every program recognizes this key combination. I know there are overlays. But ...
2
votes
0answers
439 views

How do I emulate a virtual keyboard with an arbitrary character set?

I am writing a couple applications that change how your keyboard works. (One that allows key-chording, and another that allows you to say syllables out loud to type individual characters.) The "...
2
votes
0answers
310 views

Remap key to two modifers or use meta shortcuts in terminal (terminator)

Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys. So I am using xmodmap. Right now caps lock is mapped to meta (...