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

learn more… | top users | synonyms

0
votes
1answer
38 views

Map a Character key to some modifier key [say Control-key]?

I am so used to emacs keybinding that I use emacs style keybindings on my entire system (with gtk settings). I've mapped Caps-Lock key to an extra Control key. But that doesn't help me from having ...
0
votes
0answers
13 views

My tarmak setup through xkb didn't work properly

I was using the dreymar big bag of keyboard tricks http://forum.colemak.com/viewtopic.php?id=1438 to setup my keyboard to learn colemak using tarmak. Now after installing that, I ran : setxkbmap us -...
1
vote
0answers
71 views

What is wrong with these XKB rules files?

I am playing with xkeyboard-config. Currently, I'm trying to understand the rules files. I've used xkbcomp to get the current keymap from the X server and write it to a file. This keymap is the ...
1
vote
1answer
79 views

Transparently mapping a modified key (with xkb)

I'm trying to simulate numeric keypad keys on the main keyboard but am struggling with xkb. How do I to convert a <LWIN> + <AD07> into a 'Left'? (AKA Super + u) It needs to play nice ...
4
votes
1answer
158 views

How can I make backspace act as escape using setxkbmap?

There seem to be several options for setxkbmap such as -option caps:backspace which makes caps a backspace. However I cannot seem to find an option that makes backspace an escape key. How do I create ...
3
votes
0answers
34 views

DDvorak 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. I don't know how to modify the commands so that pressing Ctrl, Alt, ...
6
votes
1answer
930 views

Declare a new modifier key with XKB

I'm trying to create a one handed keyboard layout and want to use Hyper to produce special keys when I press some keys. For example, when I press Hyper_L and B, I want XKB to produce ...
0
votes
0answers
26 views

How to get a HE/EN keyboard layout which is just like in Windows?

I want my keyboard in Linux to behave like it does on Windows - with respect to English and Hebrew. This is actually a tricky request, since just having en,il as the pair of layouts does not suffice. ...
2
votes
1answer
75 views

xmodmap clear modifier not working

Trying to understand XKB and how to customize keyboard mappings, specially for modifiers. A little experiment on disabling modifiers, leads to an unexpected result: (1) Modifier maps before $ ...
3
votes
0answers
48 views

3rd level with space XKB

I have gone through plenty of documents and spent a lot of time trying to configure it, but so far unsuccessfully. I have keyboard with the 3rd level keys (probably ISO_LEVEL3_shift ?) So when I press ...
1
vote
2answers
49 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 ...
5
votes
1answer
54 views

How do I *un*set an option in `xkbmap`?

I would like to disable the Ctrl-Alt-Backspace combination using a command line tool, without root priviliges. I know I can use setxkbmap to enable “zapping” with the option terminate:ctrl_alt_bksp. ...
0
votes
0answers
29 views

How can I configure /etc/kmscon/kmscon.conf to use multiple layouts

I want to configure kmscon to use two layouts. Now my /etc/kmscon/kmscon.conf looks like this: xkb-layout=us,ru xkb-options=grp:alt_shift_toggle font-name=Liberation Mono font-size=12 but it's not ...
1
vote
1answer
662 views

How do I enable Shift Lock? (Sticky shift key)

I want to map one of my keys the shift lock key. In my understanding, the shift lock key is a kind of a 'sticky' shift key: it remains pressed, shifting all keys of the layout until pressed again. It ...
2
votes
1answer
121 views

Using remapped Left Control <LCTL> key as shortcut

I have remapped the <LCTL> key to Tab in /usr/share/X11/xkb/symbols/en using key <LCTL> { [ Tab, Tab, Tab, Tab ] }; key <MENU> { [ Alt_R, Alt_R, ...
2
votes
2answers
89 views

Swap shift and caps-lock

I would like to swap the behavior of the two keys Shift and Caps Lock on my keyboard. I have read the options in /usr/share/X11/xkb/rules/base.lst, played around with'em, but none of them seems to be ...
1
vote
0answers
43 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 ...
1
vote
0answers
58 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 (...
0
votes
0answers
186 views

Unable to switch to Dvorak layout

I need help switching my keyboard to Dvorak layout. I've done this a number of times through the GUI and never had problems until now. I'm running Ubuntu 14.04.2 LTS codename trusty, Xfce4 & ...
0
votes
1answer
70 views

keyboard layout switching - non-working hotkeys in cyrillic layout

I've got a small script that runs in background and handles setxkbmap for me. Said script has some logic of switching keyboard layouts, which is essential and is not supported by my DE installation (...
2
votes
0answers
36 views

Problems after mapping Alt_R to Control [closed]

I have mapped by Alt_R to Control. My Control_R is also mapped to Control. Alt_L remains as Alt (Mod1). I used xkbcomp :0 keyboard.xkb to dump the current configuration file. In that file, in the ...
1
vote
1answer
37 views

How to remap keycodes (not symbols)?

Using XKB I can change the symbol for the TAB key: key <TAB> { type= "ONE_LEVEL", symbols[Group1]= [ Overlay1_Enable ] }; However, Google Chrome detects keycode 23 (aka <TAB>) ...
1
vote
0answers
81 views

How can I make CapsLock Shift and Shift Ctrl in GNOME?

GNOME's Tweak Tool tweak tool is an awesome GUI that comes with the desktop environment. In the tool, I can easily change the position of Ctrl and I can change the behavior of CapsLock. ...
1
vote
1answer
344 views

How Are Keys or Keycodes Mapped to X Key Symbols?

I am trying to map a function key combination to an XF86 key symbol. The key combination is Fn+F1, which I was able to use showkey to get the raw keycode for. jason@io ~ $ showkey kb mode was RAW [ ...
3
votes
2answers
420 views

How to make AltGr+i,j,k,l work properly as cursor keys?

(I already asked this question on superuser but got no answer so I'll try here now.) I would like to have the cursor keys and some others available as AltGr+c,h,t,n etc. (i,j,k,l if you have qwerty). ...
12
votes
1answer
7k views

Use setxkbmap to swap the Left Shift and Left Control

Is it possible to swap the Left Shift and the Left CTRL keys using setxkbmap instead of xmodmap? EDIT I have switched to Fcitx, which works way much better with my keyboard layout and customized ...
1
vote
0answers
56 views

Disable Caps Lock when a modifier key is pressed, with XKB

I would like all modifier keys -- except Shift -- to disable Caps Lock. Since, I would like to swap some modifiers as well, I am trying to achieve both goals at the same time (I wouldn't know how to ...
1
vote
1answer
300 views

Adding custom setxkbmap options

Use setxkbmap to swap the Left Shift and Left Control describes how to swap some modifier keys with xkbcomp. However, I'd like to just add a custom setxkbmap option instead of using xkbcomp with a ...
2
votes
1answer
112 views

xkb: Use a key to change shift level without appearing as a modifier

I'd like to configure XKB to use Caps Lock as a way of producing different keys, but I don't want it to appear as a modifier. For example: F1 produces F21 keypress Caps Lock + F1 produces F1 ...
2
votes
1answer
337 views

How to set up XKB to work with 3 modifier keys and 2 switchable layouts?

Consider the following XKB layout: xkb_keymap { xkb_keycodes { <ESC> = 9; <FK01> = 67; <FK02> = 68; <FK03> = 69; <FK04> = 70; <FK05> = 71; <FK06&...
13
votes
3answers
8k views

How to prevent the caps-lock toggle effect, without remapping or disabling it?

I have an X11 program that grabs caps-lock, and uses it. The problem is, I want to disable the regular caps-lock toggling, but doing so seems to disable the key. So whatever X11 gets for a caps-lock ...
2
votes
0answers
178 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 ...
1
vote
0answers
67 views

Gnome-shell keybinding for “Internal Microphone” on XF86Send

I use a custom keyboard with a “REPL” key (shifted: “Settings”) that I have bound to XF86Send (shifted: XF86Tools). On Fedora 21, that key (XF86Send) somehow works to toggle the “mute” on this laptop'...
1
vote
0answers
128 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 ...
4
votes
1answer
79 views

Create xkb configuration from xmodmap

I have a custom xmodmap file I use, including useful multi-language diacriticals, english quotes, dashes &c. I want to use this map with kmscon, so I need to create a xkb configuration from it. Is ...
1
vote
0answers
28 views

kmscon and deadkeys

How can I configure kmscon to use dead keys? I already have xkb-layout=br in /etc/kmscon/kmscon.conf, but the dead keys don’t work. (' + e gives me e instead of é). The layout seems to have been ...
1
vote
1answer
38 views

Multilanguage keyboard mapping files

I would like to make a web page where the user chooses a language, and depending on the language, show a keyboard with all characters corresponding to that keyboard. I've been told that Unix has ...
3
votes
1answer
239 views

How does one use the setxkbmap -geometry option?

I have a Sun Type7 keyboard on my Debian Linux (/etc/debian_version == 7.8) box, and, since it appears to be much like the Sun type6 I attempted: $ (setxkbmap -model sun6 -layout us -geometry 'sun(...
1
vote
1answer
267 views

setxkbmap: Multiple layouts with different variants

Using setxkbmap from a user's .xinitrc, I'd like to configure: German keyboard layout (de) without dead keys (variant nodeadkeys). French keyboard layout (fr) with dead keys (variant basic). So ...
1
vote
0answers
77 views

Remapping two (simultaneous) keypresses to a single keycode

Is it possible to use X keyboard functionality to remap two keypresses to different keycode? I am asking because couple of keys (such as Q and P) on my laptop don't work anymore, thus I have to use ...
6
votes
1answer
270 views

How to remap simultaneous letter keys to modifier?

I have really gotten used to the "Simultaneous Vi Mode" functionality of KeyRemap4MacBook which lets you press and hold the s and d keys simultaneously and then use the h, j, k, and l keys as the ...
2
votes
0answers
96 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 ...
5
votes
2answers
398 views

Override a few keycodes with XKB

I want to shuffle a few keys around with XKB. (Why? On a laptop where some keys are inconveniently located.) I currently use xmodmap: keycode 110 = Prior keycode 115 = Delete keycode 112 = Next ...
2
votes
0answers
131 views

How to map Alt+H to the Arrow-left key?

I would like to have my HJKL keys to function as arrow keys whenever the Alt key is pressed down. Also other combinations should work, such as Ctrl+Left should be seen when Alt+Ctrl+H is pressed. I'...
7
votes
2answers
1k views

how to bind AltGr to <Ctrl> + <Alt>

I am trying to create a linux equivalent of Ergonomic Telugu Keyboard layout called Sarala (Hard la). I have been able to map all the keys so far. The layout uses the following key combinations for ...
2
votes
0answers
190 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 ...
2
votes
1answer
47 views

How to troubleshoot layout switching when it “locks” on specific layout?

Recently I installed ChakraOS based on Arch with KDE and I cannot switch layout. Neither graphically, nor from cli. The strange thing is that I can switch to spanish with various other distributions ...
2
votes
0answers
69 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 ...
19
votes
1answer
1k views

Shortcut keys that are independent to keyboard layout

Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout? Example: In most ...
1
vote
1answer
111 views

Force English layout for the «Compose» key pressed

I like using Compose key. The problem is that large part of my text being typed in non-english layout. This means that some symbols messed up, and most isn't even present (i.e. latin characters). ...