X KeyBoard extension, or XKB, defines the way keyboards codes are handled in X, and provides access to internal translation tables.

learn more… | top users | synonyms

0
votes
0answers
9 views

Controlling mouse scroll with keyboard

Using xkb I've managed to control mouse buttons with the keyboard. I simply added these lines key <BAR> { [ Pointer_Button1 ] }; key <LEFT> { [ Pointer_Button2 ] }; key <RGHT> { [ ...
1
vote
0answers
48 views

XKB Problem, cannot remap, Remapping unsucessful

Hi I'm relatively new to ubuntu, but i don't know much about it. My problem is that my keyboard has stopped working, not all of the keys But in particular the T and Y and the backspace buttons . I ...
1
vote
0answers
60 views

GNOME Tweak Tool's numpad delete key behaviour doesn't work

I use a lot of keyboard layouts, but some of them have comma instead of dot on the numpad delete key. I want to override this behaviour and always use dot, but when I open gnome-tweak-tool, then go to ...
0
votes
0answers
21 views

How to swap Caps with Left Control and change layouts using Caps Lock+Swith (grp:shift_caps_switch)

I already tried a lot of methods for changing this and none of those worked. I used xmodmap and setxkbkey but it both ways there's always problem with setting it. However, using those methods don't ...
0
votes
1answer
27 views

How do I run xkbcom on Ubuntu GNOME startup?

Using xkbcomp -xkb I have generated a keyboard description and stored it in my home directory - ~/.keyboard-map. I can "use" this keyboard description by executing the following command: xkbcomp ...
0
votes
0answers
95 views

CAPS LOCK to CONTROL remap is reset after screen lock [duplicate]

I am trying to map my CAPS LOCK to CONTROL. To that end I added the following: setxkbmap -option ctrl:nocaps to the Startup Applications menu. This works fine whenever I start the system, however, ...
0
votes
1answer
20 views

toggle us_intl and another layout

I write on day to day basis in English, German and Spanish which can be wonderfully handled using the us layout with the intl variant (actually altgr-intl). The problem occurs when I wanna write in ...
0
votes
0answers
52 views

Make CTRL+Backspace behave as Delete

I have a chromebook with Ubuntu 15.04. The keyboard doesn't have the "Delete" key. How can I make CTRL+Backspace behave as Delete? I was able to remap some other single keys in ...
1
vote
0answers
62 views

xkb configuration to map Alt + h --> Right

I have a Chromebook that's missing a number of vital keys. I'd like to remap those to ones that are present. Unfortunately the Chromebook has a dearth of keys in general so I need to map a ...
1
vote
1answer
76 views

switching keyboad layout disables setxkbmap customizations

I use this command: setxkbmap -option "lv3:caps_switch" to customize my keyboard shortcuts (home, end, left and right arrows). Configuration resides in /usr/share/X11/xkb/symbols/us file. Everything ...
2
votes
1answer
85 views

us keyboard not working in 14.04 after removing *.xkm files from /var/lib/xkb

I wanted to customize my keyboard shortcuts and followed the advice given here: Why did 13.10 break my custom keyboard layout? I modified my /usr/share/X11/xkb/symbols/us file and deleted *.xkm ...
1
vote
1answer
56 views

Why does the keyboard indicator show my custom keyboard on a dark gray background?

I am using Ubuntu 14.10 with the Unity interface, and I have created a custom keyboard layout by manually creating an xkb symbols file. I put the file in /usr/share/X11/xkb/symbols/ and I have also ...
1
vote
1answer
152 views

How can I swap Left Meta for an arbitrary key (preferably using xkb)?

I'm trying to counter my "emacs pinky" by putting some keys in more accesible places. I've already switched Ctrl for Caps Lock, which was a no brainer, putting a setxkbmap command to the Startup ...
0
votes
0answers
51 views

Is loading two xkm files normal?

Sys.log shows two xkb files as being reused: [22.078] (II) XKB: reuse xkmfile /var/lib/xkb/ server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm [22.090] (II) XKB: reuse xkmfile /var/lib/xkb/ ...
0
votes
2answers
107 views

Enabling SIL phonetic Biblical Hebrew keyboard

Looking through /usr/share/X11/xkb/symbols/il under Ubuntu 14.10, there are several Hebrew keyboard layouts defined: “Hebrew”, “Hebrew (lyx)”, “Hebrew (phonetic)”, “Hebrew (Biblical, Tiro)”, and ...
0
votes
0answers
93 views

How to unset XKB configuration? I want Ubuntu to not touch it

How can I tell Ubuntu 14.04 (or later) to leave my XKB keyboard configuration alone? I load my own XKB configuration on session startup (from my home directory) and it is regularly "reset" to what the ...
0
votes
0answers
166 views

Customizing the keyboard layout: Associating Muhenkan to modifier Mod3

I use xmonad, and I always used xmodmap with the following script clear Lock add Control = Caps_Lock keysym Caps_Lock = Control_L clear Mod3 add Mod3 = Muhenkan while I can live without caps lock ...
1
vote
1answer
468 views

Change keyboard layout

I'm not the only one with this probmem. Switching to workman layout. I tried on ubuntu 12 and 14 on two different computers with the same error. Following instructions in this question but get ...
1
vote
0answers
55 views

Reverse Scrolling with xkb

Currently I'm using Xmodmap to reverse scrolling direction: pointer = 1 2 3 5 4 7 6 8 9 10 11 12 What is the equivalent way to do this with xkb? (or is this possible at all?) I'm evaluating KF5 and ...
1
vote
1answer
62 views

Configuring XKB fails

I am running LXDE on ubuntu 12.04, and I use two keyboard layouts (german and greek). My problem is that I cannot use the "AltGr" key of the German keyboard (it is the right "Alt"). It somehow ...
1
vote
1answer
254 views

New keyboard layout does not refresh unless renamed

Keyboard layout names are not being released for reuse. I am trying to create a new xkb layout. Here is how I am doing it. Add the new layout to /usr/share/X11/xkb/symbols/in Register the layout ...
2
votes
1answer
82 views

Why does pressing ctrl+space bring up a keyboard layout menu?

I am trying out StumpWM, however when I press Ctrl+Space I get a menu to change keyboard layouts. This conflicts with emacs region selection. What causes this behaiviour and how do I disable it? I ...
4
votes
1answer
2k views

How to swap Command and Control keys with xkb step by step?

I want to use my Apple long aluminium keyboard with swapped Command Cmd and Control Ctrl keys. How is this done step by step on Trusty Tahr (14.04) using xkb? Note: This solution doesn't work for me ...
1
vote
0answers
25 views

Problem inputting Indian rupee sign via XKB layout using Win key as level 3 shift

I'm from India but mostly just using the default "US" keyboard layout. I tried to modify it to input the Indian Rupee Sign U+20B9. I modified /usr/share/X11/xkb/symbols/us as follows: key ...
2
votes
0answers
154 views

Bind ALT + Left/Right arrow to HOME and END keys in XKB

I have tried a few ways to achieve this but none of them seemed to work, autokey inserts both the Alt + → and end keys in applications. I am looking for a solution in XKB where I have already done a ...
5
votes
1answer
832 views

Using setxkbmap for a simple remap (similar to xmodmap)

I've faced some issues after remapping keyboard with xmodmap: settings get reset randomly after 2-20 minutes after applying. Googled it but no help: something resets them, but all mentions apply to ...
5
votes
1answer
2k views

How to add a new keyboard layout (Custom keyboard layout definition)

I want to copy a keyboard layout in /usr/share/X11/xkb/symbols/ and change it and then produce a new layout from it. How can I add a new keyboard layout (named e.g. "mylayout")? Update #1: Files I ...
1
vote
1answer
992 views

Modify keyboard layout Unity in 14.04

How to set the Meta key with xkb? Adding key <AA06> { [ meta, meta ] }; to /usr/share/X11/xkb/symbols/us (in the "basic" section) and then running sudo dpgk-reconfigure ...
3
votes
1answer
242 views

Who reads `/etc/default/keyboard`?

And I do not care about the console here (I care about X11)... I see in /var/log/Xorg.0.log that my X-server picks up xkb_rules evdev from somewhere I can’t find. It also seems to take xkb_model and ...
3
votes
2answers
327 views

Problems using custom keyboard layout / symbols file

I have a custom xkb symbols file which looks as follows: // modify the basic German layout to have polish characters default partial alphanumeric_keys xkb_symbols "basic" { include "de(basic)" ...
1
vote
1answer
455 views

Reliably remapping keys per input device

I have a Mac, and the modifier keys on the keyboard are in order from left to right: Ctrl, Alt, Super (aka. Cmd, ⌘, Windows-key). I'd like the order to be Ctrl, Super, Alt instead, and so I have ...
2
votes
1answer
284 views

Wrong key behavior

I am encountering a very weird error recently, that I cannot figure out to solve. I have an Asus S301L with Ubuntu 12.04 and an Italian keyboard; every time I log in, some key on my keyboard does not ...
3
votes
1answer
639 views

How to specify keyboard layout vairant in org.gnome.desktop.input-sources

I have a Thinkpad laptop with an external Apple keyboard. I like to remap the keys for the external keyboard so I have adjusted the relevant parts (the section for mac) in xkb/symbols/us and ...
1
vote
1answer
285 views

Custom keyboard layouts: adding a character for which no keysym is defined

A couple of years ago, I followed the custom keyboard layout howto, and have been in dvorak+bilingual+typographic bliss ever since. I’d now like to add the thin non-breaking space (U+202F) as one of ...
3
votes
0answers
162 views

How to make Hyper and Super keys not do the same thing?

I have used xkb to remap the right windows key (RWIN) to Hyper_R because I want to use it with AutoKey for some special shortcuts. I did it by editing /usr/share/X11/xkb/symbols/pc modifying the ...
8
votes
2answers
4k views

Why did 13.10 break my custom keyboard layout?

I was using a custom keyboard layout. Basically I modified the us-mac layout to fit my ideal of a math-heavy version of the regular us layout that also throws German umlauts into mix. It went well and ...
3
votes
1answer
971 views

Why aren't my modifications to xkb working?

Short version Currently, AltGr+- produces ¥. I wish for it to produce an en-dash. In /usr/share/X11/xkb/symbols/us, I replaced all occurances of "yen" with "endash" and restarted, but this made no ...
1
vote
1answer
3k views

How can I remap “special” keys in xkb?

I've been trying to migrate my keyboard mapping from xmodmap to xkb, but I'm having some trouble. I can see where to modify the "normal" keys, in /usr/share/X11/xkb/symbol/us for me, but this file ...
2
votes
2answers
991 views

Changes to keyboard layout resetted on restart

I edited /usr/share/X11/xkb/symbols/fr to customize the french-dvorak layout. I then selected french-dvorak layout (instead of french). Now when I restart Ubuntu, I end up with the non-edited ...
2
votes
0answers
393 views

How can I rebind Print Screen to Delete?

I'm running Xubuntu Raring Ringtail. Using xkbcomp, I used the following commands (I can go into more detail as to the context and what command I use, if it's relevant), which successfully remapped my ...
3
votes
0answers
169 views

How to map a character sequence to a key in xkb?

I am making a keyboard layout in xkb for Punjabi language. The default ones are outdated. In windows I could assign a keyboard key to a sequence of Unicode characters. But in xkb I think I cannot. But ...
3
votes
1answer
130 views

What's the correct way to reassign keys with xkb?

I have an Apple keyboard with a Swedish layout and this makes some characters very awkward to type, like right Alt key and 7 to type a left brace. Therefor I would like to reassign the right Command ...
1
vote
1answer
84 views

Mapped keys do not work in some applications

I have an Apple keyboard where the right command key (Super_R) is mapped to the right Alt key (ISO_Level3_Shift) with xmodmap: $ cat ~/.Xmodmap clear mod4 keysym Super_R = ISO_Level3_Shift In some ...
2
votes
1answer
699 views

Are keyboard layout settings handled by two different applications in Xfce?

As seen in my answer here, trying to make certain keyboard settings in Xfce I am faced by two separate options. One is in Menu/Settings/Keyboards (xfce4-keyboard-settings) and displays this window: ...
5
votes
3answers
288 views

Letting modifier keys act as toggles under X

Is there any way to let the Shift, Ctrl and Alt keys behave as toggles under X? I know how one could do it under CLI (for example, by doing this) but found no reference for doing so under X. Please ...