We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [xkb]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

A Compose Key as a Part of a Layout Switch Combination

Why I can't switch my layout with these settings: setxkbmap -layout us,ru -option grp:alt_caps_toggle,compose:caps Is it possible at all to have a compose key assigned on CapsLock and a layout ...
1
vote
0answers
72 views

Fedora 30 on Macbook Pro - cannot remap caps lock

I'm running Fedora 30 (gnome desktop) on a 2015 Macbook Pro, and am trying to remap caps lock to ctrl when held down and escape when pressed. To do this, I ran: setxkbmap -option 'ctrl:nocaps' &&...
1
vote
1answer
109 views

Bind CapsLock+hjkl to arrow keys

I want to bind CapsLock + hjkl to arrow keys, I found two way that each have some issues: Solution 1 Using xkb : Edit /usr/share/X11/xkb/symbols/us first block. # replace Caps with ...
1
vote
0answers
12 views

Gnome make mouse keys config persistent

I enabled mouse keys in gnome settings and the default mouse pointer was unusable due to its slowness, so I searched and found this command that fixes the problem: xkbset ma 60 10 10 5 2 The problem ...
1
vote
0answers
20 views

Adding a rule file to xkb

I expected that with the file ~/.xkb/rules/myr as follows ! option = symbols test = +what(ever) then the output of setxkbmap -I$HOME/.xkb -rules myr -option test -print would reflect ...
1
vote
0answers
15 views

XKB keyboard remapping

I want to replace the character map of one keyboard with some other unicode characters. I did it by going to usr > share > X11 > xkb > symbols as prescribed here. I am pasting here the ...
1
vote
2answers
229 views

Key remapping for special characters (Umlauts) in Wayland

Under Xorg, I used ~/.Xmodmap in order to be able to type amongst others a German Umlaut (i.e., äüö) using the right Ctrl key and a, u, o, respectively (as well as Shift for capitals): remove Control ...
1
vote
1answer
17 views

Cannot map a hotkey on my keyboard (XF86Mail)

I had the following problem: I wanted to make use of some Hotkeys on my keyboard (I am using Openbox, but it should not make a difference.) Most of my keybinds worked just fine (XF86AudioRaiseVolume,...
1
vote
0answers
302 views

How to remap Caps Lock key to a command (not ctrl or escape, but a command like xfce4-terminal)

I am using GNOME on Wayland on Arch Linux. Currently my CapsLock key does nothing and "Both shift keys" act as CapsLock (set from gnome-tweaks). I want to remap CapsLock to a command like gnome-...
1
vote
1answer
120 views

Some applications ignore Xmodmap settings

I am using the following ~/.Xmodmap keycode 133 = Mode_switch keycode 134 = Mode_switch keysym h = h H Left keysym l = l L Right keysym k = k K Up keysym j = j J Down keysym w = w W Prior keysym s = ...
1
vote
1answer
30 views

Switching XKB group programmatically

Is there a way to switch group programmatically, without actually pressing a key that's bound to something like ISO_First_Group? I tried xdotool key ISO_First_Group, but that didn't work.
1
vote
0answers
33 views

Modifier as normal key

With xcape, it is possible to make a modifier act as a normal key when pressed and released. Is it possible to achieve this with xkb alone?
1
vote
0answers
73 views

System wide mapping of a key combination to a single key

I've recently switched from macOS to Fedora, on macOS I used a tool called Karabiner Elements to map the key combinations Ctrl+ö to [ Ctrl+ä to ] Alt+ö to { Alt+ä to } I'm aware of a similar ...
1
vote
0answers
108 views

Why Tab can't be modified with ISO_Level3_Shift

I am using a 40 key keyboard called daisy, I want to have a consistent layout of all my keyboards. The tab can't modified to other keys is kind a waste of resources. The relevant part in .Xmodmap is: ...
1
vote
0answers
146 views

KDE Custom Shortcuts don't work with special XF86 keys

I want to use an external numpad as a 'macro keyboard' with each key being able to perform a specified action. I have already created a custom xkb_keymap to map keys to XF86 symbols. $ cat ~/.xinitrc ...
1
vote
1answer
504 views

Switch between more than two keyboard layouts using modifier keys

I am currently able to temporarily switch my keyboard layout from US to Danish while holding caps, and toggle permanently using alt+space, with the following command: setxkbmap -option "grp:...
1
vote
0answers
358 views

Remap capslock and enter to control modifier

I want to remap two keys, not just one. Specifically, I want to: Remap capslock to control and escape, and Remap return/enter to control when it is pressed with another key. Based on the two links ...
1
vote
1answer
347 views

How can I remap left-backspace to escape on the Colemak keyboard layout?

My keyboard setup is this command: exec setxkbmap -layout us,us -variant altgr-intl,colemak -option caps:escape,grp:alt_shift_toggle It maps caps lock to escape for qwerty, but in Colemak, there is ...
1
vote
0answers
49 views

How can I remap Ctrl_Left + button to one action, and Ctrl_Right + button to another?

In my particular example, I want to be able to remap Control_left + n to output LeftArrow, but also to Control_right + n to output Return. How can I do that? I red through xmodmap man, so as xbinkeys, ...
1
vote
0answers
509 views

AltGr not working as keyboard level 3 chooser

I have an almost fresh install of Kali linux as secondary system on my laptop, which has a standard German 101 keys keyboard. After install the AltGr was working perfectly well as a level 3 chooser ...
1
vote
0answers
42 views

Cant remap L_shift to L_control unless I remap L_control to something else in xkb

I want to remap my caps lock to shift and my left shift to control, but I want to leave my current left control untouched and also working as a control. Following the advice in this question Use ...
1
vote
0answers
263 views

Remapping <Ctrl-?> keys in X11

I recently started using Colemak layout. Of course, all shortcuts like <Ctrl-T> for opening a new tab changed their positions. That's fine, after all, its all mnemonics. However, there is a ...
1
vote
0answers
319 views

How can I create a complete xkb layout and make it work?

I have a japanese layout keyboard and I'd like to customize it to fit my need. Here is the xkb layout file I created. default partial alphanumeric_keys modifier_keys xkb_symbols "jp106" { ...
1
vote
0answers
829 views

Compose key not working

I added setxkbmap -option "compose:ralt" to my .xinitrc to map the right alt key as the compose key (Multi_key) and copied the default .XCompose file to my home directory. Why is the compose key now ...
1
vote
0answers
125 views

Remap Caps Lock to “A” without sending letter twice

My "A" key is broken, so I want to remap Caps Lock to "A". This is an unusual remapping, so none of the built-in setxkbmap options (like caps:escape) covers it. I'm also on Wayland so I can't use ...
1
vote
0answers
310 views

Swap ctrl-tab and alt-tab using XKB

I would like to swap the behaviors of ctrl-tab and alt-tab (and also swap the behaviors of ctrl-shift-tab and alt-shift-tab), while keeping the rest of ctrl- and alt- shortcuts unchanged (e.g., ctrl-c ...
1
vote
1answer
113 views

shift:both_capslock disables normal shift behavior

I set the xkb option shift:both_capslock (because I also use caps:escape) but this seems to have disabled the normal behavior of the shift key. How can I get that normal behavior back while still ...
1
vote
1answer
624 views

Making CTRL + ALT act like AltGr in xkb

I want to make CTRL + ALT act like AltGr, and from this post (1st answer): unix.stackexchange.com/questions/84707/how-can-i-make-ctrl-alt-act-like-alt-gr-in-ubuntu I have gotten to the point where ...
1
vote
0answers
27 views

Make dead keys insert both characters if the combination is not recognized [duplicate]

There are ways to configure dead keys in Linux to mimic the behavior they have in Windows ? This document describe how it works in Windows:US-Int'l Keyboard Layout to Type Accented Characters The ...
1
vote
0answers
354 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....
1
vote
0answers
150 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
0answers
491 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 layout,...
1
vote
1answer
74 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
1answer
193 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
237 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
0answers
258 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
1answer
82 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
0answers
334 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 ...
1
vote
0answers
56 views

When I use left window key + e in konsole it prins 'se'

I was trying to change my keyboard layout and when I tried it in the konsole, I saw that konsole interprets it rather oddly. Win + E executes some hostnames and prints "se" on the prompt. With other ...
1
vote
0answers
779 views

How to start a command upon login in GNOME?

I would like to run xkbcomp upon a user login in order to modify its keyboard. The command works fine from a terminal after login. The system is an unmodified Fedora 20 Desktop Edition. I tried to ...
1
vote
0answers
682 views

Configuring Caps Lock as modifier and layout switcher

I want to set the caps lock key working as a modifier (modkey) and layout switcher at the same time. I want Caps Lock to act as a modkey in awesome in different hotkey combinations, for example, Caps ...
1
vote
0answers
294 views

Change behaviour of the modifier keys system-wide

I’d want to make modifier keys (control, alt, shift, meta, super, lv3_switch) to act like usual keys, I mean, without holding one of them to perform associated key combination. Say C-x M-1 can by ...
0
votes
1answer
35 views

`us:2` mod in XKB configuration

This is my XKB configuration: $ setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" ...
0
votes
1answer
65 views

How do I know which key combination does what for the Dvorak international alternative layout?

So far, I can only figure it out by trial and error. Right Alt + a = à Right Alt + o = ô Right Alt + e = é Right Alt + u = û Right Alt + i = î Right Alt + 4 = € Right Alt + , = ä Right Alt + . = ê ...
0
votes
1answer
532 views

XKB: modify layout to Multi-group with Mode_switch

I want to create a custom keyboard layout based on my German keyboard layout (de). The idea is to have a two-group layout and have the Caps-Lock to be the Mode_switch key. That remap seems to work ...
0
votes
1answer
127 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
1answer
60 views

French characters mappings in xkbcomp ~/.keymap.xkb

I am looking to add all the French characters to my ~/.keymap.xkb file. In the interest of not duplicating things, has anyone else done this and care to share their configuration? Clearly some ...
0
votes
1answer
81 views

Can I create additional keyboard shortcuts inside xkbconfig that switch to a particular language, instead of cycling?

My current keyboard config is quite complex, but the relevant line is: setxkbmap -option -option 'grp:rshift_toggle, compose:rctrl' dmru,ru,ua & Rshift now cycles through dmru, ru, and ua. ...
0
votes
1answer
229 views

Why does not keypresses to the pause/break key reach `xev`?

I'm running xfce and as far as I can see the pause key is not mapped as a hotkey. When pressing the pause key it only produces: FocusOut event, serial 37, synthetic NO, window 0x3000001, mode ...
0
votes
1answer
302 views

How do I get a Hebrew keyboard layout with Caps-Shift-based Niqqud (SI 1452)?

In Microsoft Windows, the Hebrew keyboard layout has Hebrew characters in the basic state, English capital letters in Shift state or in Caps Lock state, but if you use Shift when Num Lock is on, you ...