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

-1
votes
0answers
8 views

Remap 2 to F2 in xkb on Lubuntu 14.04

My 2 key is no longer working due to a hardware problem. I wish to replace its use by the key F2 through xkb, as I had no luck with xmodmap - even with help. The F2 key value (i.e., the F2 key-press ...
1
vote
0answers
34 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 ...
1
vote
1answer
32 views

Map F2 to replace the 2 key – also with Shift and Alt combination – in Lubuntu 14.04.3

I run a Danish keyboard layout in Lubuntu 14.04.3. The 2 key is malfunctioning (hardware problem). I wish to replace its use by the key F2. The F2 key value (i.e., the F2 key-press event) will then ...
2
votes
1answer
13 views

How to set the keymap for keyboards that are plugged in later?

I have configured my keyboard layout by adding a call to setxkbmap to my .xinitrc. This works for my laptop's internal keyboard and for any external keyboard that is plugged in when the X server ...
2
votes
0answers
40 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
1answer
25 views

Where do I edit the keyboard “system settings” these days?

The last time I manually edited keyboard settings was sometime last decade. There days it looks like things have have changed. Now, when I use the Keyboard layouts dialog in XFCE or LXDE, I can either ...
2
votes
0answers
25 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 ...
2
votes
1answer
29 views

Using xkb to remap quote and Right Control

On a standard US keyboard, I've swapped Caps Lock and Left Control, which is almost essential for proper Emacs usage. For symmetry, I'd like to swap ' (the quote key) to Right Control. xkb seems like ...
3
votes
1answer
24 views

xkb: how toggle keyboard layout with win + capslock?

I want to set custom shortcut to change keyboard layout using setxkbmap. For example win_caps (Win+CapsLock). This option is not listed in /usr/share/X11/xkb/rules/base.lst How can I achieve this?
0
votes
1answer
23 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
10 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
36 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
50 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 ...
0
votes
0answers
24 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. ...
1
vote
2answers
33 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
36 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
20 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
206 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 ...
1
vote
1answer
58 views

Unable to add a keyboard layout on Cinnamon

I'd like to try the Polish Colemak layout. It's built into xkb: /usr/share/X11/xkb/rules $ grep -ri 'Polish (Colemak)' * base.extras.xml: <description>Polish ...
7
votes
1answer
51 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 ...
2
votes
1answer
75 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, ...
1
vote
2answers
65 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
34 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
29 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 ...
1
vote
0answers
71 views

Remapping space + ijkl to arrow keys

I want to set my keyboard so that pressing space and releasing will emit a "normal" space, but holding space and pressing one of i/j/k/l will emit an arrow key. Is it possible to do that? Thanks!
0
votes
0answers
99 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
44 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
30 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
24 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
58 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. ...
2
votes
0answers
21 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, ...
1
vote
0answers
44 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 ...
4
votes
1answer
98 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 ...
2
votes
0answers
126 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
57 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 ...
5
votes
1answer
286 views

xkb: make ctrl+backspace behave as delete

How can I map Ctrl+Backspace to behave as Delete key with xkb? I can remap a single key on /usr/share/X11/xkb/symbols/pc but can't figure out how to do the combination. My OS is Ubuntu 15.04
2
votes
2answers
204 views

How do I bind AltGr+key to a symbol?

I want to bind AltGr+W to æ, and some other combinations, how can I do this? I also need AltGr+Shift+W to Æ. I normally use setxkbmap to change the keymap.
1
vote
0answers
85 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 ...
2
votes
1answer
48 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 $ ...
1
vote
0answers
24 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 ...
3
votes
1answer
58 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
1answer
31 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 ...
1
vote
1answer
174 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 ...
3
votes
1answer
156 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 ...
2
votes
1answer
230 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; ...
0
votes
0answers
48 views

Tweaking keymap for Macbook

I've recently installed Debian jessie with a GNOME 3 desktop on my Macbook Pro. There are a couple of things I don't like about Apple's keyboard layout (British). The first is that I'm a programmer, ...
1
vote
1answer
199 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 [ ...
0
votes
0answers
51 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 ...
2
votes
0answers
73 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
0answers
36 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 ...