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

2
votes
1answer
27 views

How can I list all layouts and corresponding variants that don't use 3rd level symbols?

I need to list all possible xkb layouts and their respective variants that do not use 3rd-level symbols. Manually review of all files in /usr/share/X11/xkb/symbols/ directory is crazy, there maybe an ...
3
votes
0answers
26 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+...
0
votes
1answer
24 views

How can I add an include line to an XKB configuration file?

I do which just add a ralt_switch to English(Dvorak-US) keyboard sudo sed -i "249i\ include 'level3(ralt_switch)'" \ /usr/share/X11/xkb/symbols/us sudo dpkg-reconfigure xkb-data ...
1
vote
0answers
10 views

xbindkeys/xkb map ctrl shortcut

I have installed colemakwide(xkb) and would like to keep shortcut like ctrl+s etc. The goal is that all ctrl shortcut behave like QWERTY which I did in windows/klc by have the original vk for the keys....
2
votes
0answers
13 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 ...
1
vote
2answers
36 views

XKB: assign multiple keycodes to one behaviour (<ESC>)

I have a new bluetooth keyboard, and for some reason the keycode that the escape key returns is 172 instead of 1 (according to 'showkey'; the same codes have 8 added in xkb, so 180 instead of 9). By ...
1
vote
0answers
14 views

some xkb option fails under Gnome

I'd like to ask a question about xkb settings. Consider the following scenario. I want two keyboard layouts and a way to easily switch between them. Let's consider US and US(dvorak). To switch I ...
1
vote
1answer
72 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
2
votes
2answers
35 views

How to make xkb settings stick after restart [duplicate]

I'm running Ubuntu 15.10. I'm running the following command in the terminal to swap the left Alt and left Control keys: setxkbmap -option ctrl:swap_lalt_lctl. It works, but as soon as I reboot It's ...
0
votes
0answers
72 views

How to swap left Alt and left Control in Ubuntu 15.10

I'm trying to swap left alt for left control so that I can use the same keyboard commands at home on Ubuntu that I use at work on OS X. I found a great post on this site about how to switch left SHIFT ...
2
votes
0answers
31 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 ...
4
votes
0answers
47 views

Multiple modifier layers with XKB (on a japanese keyboard)

I have the following keyboard (HHKB JP). I'm using Lubuntu 14.04, and I've edited /usr/share/X11/xkb/symbols/us to implement a custom layout. Now, I want to use the following keys as 5th, 6th, 7th,...
0
votes
0answers
26 views

Alternative to `xkbcomp`?

In Getting and setting XKB layout, section Using keymap (xkbcomp) is marked as deprecated. What is the alternative then? (example method in section Using rules is not sufficient).
1
vote
0answers
49 views

setxkbmap -option lv3:ralt_switch_multikey doesn't work with many layouts

My current xkb setup is as follows: $ setxkbmap -query rules: evdev model: pc104 layout: us,cz(qwerty) options: lv3:ralt_switch_multikey,grp:lalt_lshift_toggle When in the us ...
1
vote
0answers
15 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
38 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 ...
2
votes
0answers
13 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 ...
5
votes
1answer
50 views

Use xkb to make shift insert parenthesis

I'm trying to imitate the setup I had on OS X (via Karabiner): Pressing the left Shift on its own key inserts a left (, but holding it down and pressing another key acts as a normal Shift key (and ...
1
vote
1answer
34 views

How to change keyboard settings of the active user using udev and setxkbmap?

I have a usb keyboard that I plug in into my desktop at work. While using it tend to manually set the following setxkbmap option: setxkbmap -option compose:ralt setxkbmap -option ctrl:swap_rwin_rctl ...
1
vote
0answers
135 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
44 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
17 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 ...
1
vote
0answers
58 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 "...
1
vote
1answer
31 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 ...
1
vote
0answers
36 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
41 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
39 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
34 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
12 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
64 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
76 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
25 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
48 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
47 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
28 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
597 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
81 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 (Colemak)</...
7
votes
1answer
67 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
115 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
83 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
42 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
53 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
1answer
123 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
178 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
66 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
34 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
33 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
80 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
29 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
53 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 ...