Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xkb]

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

0
votes
1answer
26 views

Remapped CapsLock key is ignored (set by XKBOPTIONS in /etc/default/keyboard)

I tried to follow https://www.emacswiki.org/emacs/MovingTheCtrlKey which says this can be done this way: On Debian and derivatives (Ubuntu, Mint etc.) To make Caps Lock another Ctrl key, edit the ...
0
votes
1answer
33 views

keys virtually “stuck” after remapping

/situation I'm on this problem since several days, and to the point of considering switching back to Windows (which would make me sad, as i haven't used it since... 2010, iirc - but WoW Classic is ...
0
votes
0answers
34 views

Map key to a script in Ubuntu 18.04.1

I'm on Ubuntu 18.04.1 Bionic Beaver using an HP Pavilion laptop. My laptop has a key for toggling airplane mode. Using xev, I found out that it has keycode 255. I've saved the following code at /bin/...
0
votes
0answers
20 views

xkb compose file

As more often then never I forget to type the right character of a pair of open-close couples (parentheses, brackets, …), I added to my compose file lines such as <parenleft> : "()" &...
0
votes
0answers
14 views

ubuntu server vncserver grey screen xkb error

Hi I am trying to VNC from my phone into my laptop i am running vncServer something like ("VNC4server") on ubuntu 16.04 when i try to log in it accepts credentials but I get a grey screen with a ...
0
votes
0answers
11 views

Mapping XKB to custom shell command

I'm running a crouton Gnome instance on a Pixelbook, and my brightness keys don't work in gnome. I have no /etc/default/grub file to speak of, so all those options aren't available to me. I'm thinking ...
1
vote
1answer
123 views

How to map the Caps Lock key to Left Alt in Ubuntu +18?

I've been looking for a way to solve the aforementioned problem. I tried xmodmap -e "keycode 66 = Alt_L" but apparently the result is that the CapsLock key gets mapped to Left-SHIFT, which is not ...
2
votes
0answers
57 views

rootless + permanent way to change keyboard layout in GNOME 3.28.2 (Ubuntu 18.04)

I would like to find a way to apply two minimal changes to my current keyboard layout: · change the behavior of Fn+P · change the behavior of AltGr+ùg While I was successful in doing it using two ...
0
votes
1answer
73 views

Caps Lock as a Control (Ctrl) key though the shell command

I'm using an Awesome WM, so the default settings provider doesn't work for me. Is there a simple shell way to make the Caps Lock key send a Ctrl key code instead?
0
votes
1answer
58 views

How to invoke xkbcomp? [closed]

When I'm trying to run this xcbcomp $DISPLAY original.xkb I'm getting this: No command 'xcbcomp' found, did you mean: Command 'xkbcomp' from package 'x11-xkb-utils' (main) xcbcomp: command not found ...
1
vote
0answers
41 views

Map Caps Lock to delete whole word

I used dconf-editor to map caps lock to backspace, which works fine. i.e. ['caps:backspace'] But I'd like to map caps lock to ctrl_backspace, so that it deletes the whole word when pressed. Is this ...
1
vote
0answers
94 views

Getting XKB remaped arrow keys (ISO_Level3_Shift + HJKL) to work properly with the WIN key

I've seen some posts on how to remap arrow keys with XKB, but although they work mostly fine, no method so far (except using different groups, which becomes an hassle to manage with Gnome keyboard-...
0
votes
0answers
22 views

xkb settings in dotfiles

Currently to configure xkb I use files in /usr/share/X11/xkb/. I don't like the idea of backing up this directory. I don't like the idea of editing this directory. I want to be able to replace files ...
1
vote
0answers
90 views

Using xkb to map a key combination to another

How can I use xkb to map a key combination like Super + Shift + C to another combination like Ctrl + Shift + C? The question is about doing so with xkb. I know about autokey or xmodmap but I want to ...
0
votes
1answer
57 views

Mapping Left Control to Hyper using xkb

How can I map left Ctrl to behave as hyper (left hyper) using xkb? Look at this in keycodes/evdev: // Fake keycodes for virtual keys <LVL3> = 92; <MDSW> = 203; <ALT> = 204; &...
3
votes
1answer
303 views

Ubuntu 18.04 input slow when Portuguese (Brazil) layout among keyboard input sources

My system freezes for 1-2 seconds every time I need to input a password, most of the times when I start typing on the a new window or dash input and every time when I turn volume up/down through the ...
4
votes
0answers
58 views

How to stop Gnome from overriding XKB layout

I've created an udev rule to set the layout of an USB keyboard: ACTION=="add", ATTRS{idVendor}=="0e6a", ATTRS{idProduct}=="030c", ENV{XKBMODEL}="pc105", ENV{XKBLAYOUT}="us", ENV{XKBVARIANT}="dvorak", ...
1
vote
0answers
200 views

How can we make setxkbmap and xmodmap work together?

On Lubuntu 18.04, I found the following commands will cancel each other $ setxkbmap -option keypad:pointerkeys $ xmodmap ~/.Xmodmap I would like to be able to fully control my cursor using ...
0
votes
0answers
53 views

Key hold not registered after xkbmap language switch

I'm using i3wm with ubuntu 16.04. To switch between languages, I have following in my .config/i3/config: exec_always setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle" The problem is: I press and ...
5
votes
1answer
100 views

Remap a key to Ctrl and make it behave like Ctrl during text editing

I bought a fancy-looking mechanical keyboard in Korea. In general, it works really well except for one thing - even though it has Alt and Ctrl keys on its right side, these keys do not generate the ...
0
votes
0answers
29 views

xfce4-xkb-plugin crashes on Xubuntu 17.10

This happens while I click it and try to change the layout Any suggestions?
0
votes
0answers
38 views

Chrome disabled key remapped with xkb

I remapped my PageUp and PageDown keys since they were awkwardly placed right above the left and right keys (XPS13 2018). To do so, I changed the file called 'pc' in /usr/share/X11/xkb/symbols. More ...
0
votes
0answers
21 views

Some issues with 'CAPS + i/j/k/l' mapping

I've mapped CAPS key with xkb following this answer (Actually via this instruction). But now when I press CAPS + i/j/k/l and hold, navigation works only once instead of moving continuously. Any ideas ...
0
votes
0answers
14 views

Keyboard layout : is there a way to type several chars at once?

I would like to set xkb to type character combinations when I press a single key. I am currently developing my own keyboard layout and I would be glad to be able to configure some keys to insert whole ...
1
vote
1answer
171 views

Fake key code for remapped keyboard keys

I have remapped my caps lock to backspace. /etc/default/keyboard XKBLAYOUT="us" XKBVARIANT="altgr-intl" BACKSPACE="guess" XKBOPTIONS="caps:backspace" This works pretty great, except that it doesn’t ...
1
vote
1answer
52 views

My French keyboard layout is in QWERTY

Ubuntu now assigns a QWERTY layout to the "French" layout setting: This occurred while I was trying to create a custom keyboard layout. Presumably I broke something while modifying the files /usr/...
0
votes
0answers
36 views

Resuming from sleep discards custom XKB settings

I use custom XKB settings (to swap PGUP/PGDN with HOME/END) as a Autostart script in Kubuntu 17.10 (running XOrg). That's fine, and settings are as expected after every boot/login. Now if I put my ...
2
votes
0answers
65 views

xkb mapping of R_Control+Arrows

Have a laptop with directional Arrow keys and Fn + Arrows for PageUp/PageDown/Home/End. Want to make those keys such that the Right Control changes them to: RCtrl + Up -> Page Up RCtrl + Down -> Page ...
1
vote
0answers
47 views

How to specify caps lock and control key mapping on a per-keyboard basis?

I have an external keyboard that I use with my Ubuntu 17.10 desktop and laptop at home, and the same species of keyboard on my RHEL 6.8 machines at work. But on my Ubuntu 17.10 laptop, I use the built-...
1
vote
1answer
727 views

How to use Mode_switch and xmodmap in current Ubuntu versions?

For years I used the following ~/.Xmodmap file to get german umlauts quickly, e.g. when I press the ALT_R + a I get ä. A nice shortcut compared to using the compose key: keycode 108 = Mode_switch ...
0
votes
1answer
259 views

Why does “setxkbmap de” not have an effect in a terminal?

When I try to change my keyboard layout in Ubuntu in a terminal with setxkbmap de, it does not change the layout in the terminal. Yet it changes the layout in other X applications. I don't understand ...
0
votes
1answer
70 views

Is there an official folder in the home directory for storing keymaps?

I can add a custom xkb keyboard layout in /usr/share/X11/xkb/symbols and acrivate it using setxkbmap. The downside of storing data in this system folder is that it gets lost when xkb-data is ...
5
votes
1answer
376 views

How to map caps lock to arrow keys?

I am trying to map Caps Lock to the Down arrow key and Caps Lock with a shift modifier to the up arrow key. I've tried using xmodmap with the following input file: remove Lock = Caps_Lock keycode 66 ...
0
votes
1answer
129 views

Setting keyboard layout for a particular device using xkbcomp

I'm using xkbcomp to swap the Alt and Win keys on an Apple keyboard of mine. This works: xkbcomp -w0 -I"$DIR" "$DIR/keymap/mykbd" $DISPLAY ...but it changes the layout for all keyboards, and this ...
1
vote
0answers
62 views

Using keyboard layout I don't physically have

I want to have a virtual keyboard with Japanese and Arabic, which my physical keyboard doesn't have stickers for (and doesn't have enough space even if I bought). I thought of using it through ...
0
votes
1answer
118 views

Remaping Keys in Ubuntu 17

Please help me solve the following problem: I have a USB pedal that I want to function as Control key for my work. So far system identifies that this pedal is working as F2 key (I am using Ubuntu 17) ...
4
votes
0answers
308 views

Add custom keyboard layout

I have a custom keyboard layout that I want to add to Ubuntu 17.10. This question relates to How do I install a keyboard layout? but unfortunate I'm not allowed to comment on that one. Basically I ...
5
votes
1answer
230 views

Static ordering of keyboard layout switching in Ubuntu 17.10

Just installed Ubuntu 17.10 and it seems that the keyboard layout switching has changed its behavior. In the previous version of Ubuntu (such as 16.04 Unity), if I have 3 different keyboard layouts (...
0
votes
0answers
266 views

Remap AltGr to Insert using xkb

I want to remap key on my (lenovo) keyboard. I want to have Insert under AltGr key. My keyboard For example, I have RIGHT CTRL under END button on the keyboard. key <END> { [ Control_R ...
0
votes
1answer
151 views

How to prevent xkbmap reset?

I use two keyboard layout, and I use CapsLock to switch to the first layout, and Shift+CapsLock to switch to the second. To do that I use the following command: setxkbmap -option grp:...
3
votes
1answer
535 views

Remap Caps Lock to Ctrl-b

How can xkb or some other tool be used to permanently bind Caps Lock to ctrl+b while in terminal? (This is to make Caps Lock the default prefix key for tmux. It could also be mapped to a specific key ...
2
votes
2answers
1k views

How can I reload my XKB configuration without restarting my computer or logging back in

I made a cool, little script that will edit my /usr/share/X11/xkb/symbols/pc file automatically. It is useful when I want to switch between a Mac or Windows keyboard. The one problem I've ...
2
votes
2answers
538 views

Adding another Modifier Key

I'm fairly new to Ubuntu (and Linux) and one of the first things I wanted to do was remap certain keys due to some keys that are located in "unwanted" positions. I thought that wasn't going to be so ...
3
votes
1answer
96 views

Can a mouse button be simulated by the keyboard without enabling numpad mouse emulation?

I'd like to be able to send middle mouse clicks from a keyboard key, for example, the right control key (keycode 105 on my keyboard). I can remap it using xmodmap like so: xmodmap -e "keycode 105 = ...
3
votes
1answer
123 views

messed up keys after permanently remapping

My Alt key doesn't work anymore, so I thought to remap it with R Shift and while doing it I messed up the shift keys for both the L Shift and R Shift. As my password contains an @ character. I can't ...
0
votes
0answers
25 views

Remap Menu to Control key (Ubuntu 16.04) [duplicate]

I am running Ubuntu 16.04 in a VirtualBox on Microsoft Surface Pro (2017). Unfortunately that keyboard doesn't have a right control key, but just a menu key on the right. That's why I want to swap the ...
4
votes
1answer
846 views

Trying to remap my left SUPER key (also called WINDOWS key) to left or right CONTROL key, with xkg

I've tried to read and understand this: https://www.charvolant.org/doug/xkb/html/node5.html As a test, since my layout is "Polish, programmer" in the /usr/share/X11/xkb/symbols/pl file I played with ...
1
vote
1answer
76 views

Calling xkbset on startup

I had the same problem found on this question. I found a solution by calling the command: xkbset bell sticky -twokey -latchlock feedback led stickybeep I would like to run on startup. I have tried ...
0
votes
0answers
75 views

How to map keys to an action in Ubuntu 13.04 and later? [duplicate]

The following answer: https://askubuntu.com/a/24930/595510 describes how to map keys to actions using xmodmap. However, newer versions of Ubuntu use xkb. How do I do this with xkb?
0
votes
1answer
63 views

Why has my xkb/symbols/pc modification been only half successful?

I am attempting to remap my Caps Lock key to either of the two Ctrl keys. After messing around with xmodmap for a few hours, I stumbled on a question here which indicated that a better way to make ...