Questions tagged [xkb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
219 views

How to map ctrl+alt+h to ctrl+left using xmodmap or xkb?

Like the title said, I've been trying for hours and days, but can't get it to work. Initially I wanted alt+h/j/k/l to map to alt+left/down/up/right with xmodmap keycode 64 = NoSymbol NoSymbol keycode ...
0
votes
0answers
78 views

xkb - difference between modifier_map and SetMods

In the xkb guide on archlinux: https://wiki.archlinux.org/index.php/X_keyboard_extension we see this configuration to set up LWIN as an ISO_Level3_Shift xkb_symbols { key <LWIN> { [...
0
votes
1answer
99 views

How to distinguish Alt and ISO_Level3_Shift in xkb?

I am using a device with a builtin keyboard and run ARM Debian on it with i3 as Window Manager. There is one Alt key (keysym Alt_L), and two keys for special characters that look similar to AltGr ...
0
votes
0answers
8 views

is it possible in XKB to redefine specific key to generate symbols until I press it again?

Is it possible in XKB to redefine specific letter to behave like switch? Instead of press/release each press&release toggles the state... Example I press the letter X, and until I hold it it "...
0
votes
0answers
295 views

Shuffling “alt”/“windows”/“alt gr” on just USB keyboard (and possibly not laptop keyboard)

Due to unfortunate misunderstanding in the label reading, I have ordered and received a Das Keyboard 4... for Mac. Which would have been nice if I didn't use a KDE Neon desktop (which is a KDE-...
3
votes
1answer
226 views

How to get a list of valid X11 names for characters

I am trying to customize my own keyboard layout. I have been messing around with the files in: /usr/share/X11/xkb/symbols/ I see that, e.g. /usr/share/X11/xkb/symbols/us contains: ... key <...
1
vote
1answer
116 views

How do I install a new custom keymapping in XKB?

I am attempting to install a custom symbols file in my keyboard mapping in XKB, as found here. I would like to overwrite how the J key is handled (the first step in emulating a numpad, but for now I ...
1
vote
1answer
295 views

How to revert keyboard layout switching shortcuts after setting them with xkb's /etc/default/keyboard XKBOPTION in Ubuntu 18

I wanted to have two keyboard layouts (one for english and one for spanish), and add a shortcut for switching between them. The solution I chose was to set the following lines in my /etc/default/...
0
votes
0answers
14 views

Change Individual Keys on a Second Keyboard Only

Without using xkbcomp. An alternative to xkb, because I can't get xkbcomp to work with java applications. Any suggestions? I'm stumped. Trying to get xkbcomp to work with java applications. Terminal ...
1
vote
0answers
32 views

xkb: Keymapping reverts backs with a Java App

I am using a xkbcomp keyboard config for a second keyboard, but I am pretty sure it is reverting back to the default setup with java application. IE: Minecraft. Whenever I try to use the gamepad "the ...
2
votes
3answers
149 views

Some X apps accept my non-Latin characters, some ignore them

I'm using an X environment with a dual keyboard layout: us,il. Now, in some of my applications, and in the il layout, Hebrew characters don't register, while punctuation marks do. In other apps, ...
4
votes
1answer
781 views

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

I've seen some posts on how to remap arrow keys under X11 with XKB, but although they work mostly fine, no method so far (except using different groups, which become an hassle to manage with Gnome ...
1
vote
0answers
92 views

x11 layout definition additional modifiers

I am trying to create a new keyboard layout which has multiple layers. I succeeded in using Mod3 to Mod5 to implement those layers, but I would rather not use the ModX bits because applications do use ...
3
votes
1answer
1k views

Show keyboard geometry/model in gnome

This question is mostly for curiosity about keyboard stuff in Gnome and/or XKB. The below was done on Ubuntu Gnome 16.04, but I believe things are they same in later Ubuntu and Gnome versions as well. ...
0
votes
1answer
593 views

Non-toggling caps lock with xkmodmap or xkb?

Is there a way to configure the caps lock button so it's not toggling? That is, so that it only applies the caps lock state while held down, and when released everything reverts to normal. The ...
0
votes
1answer
742 views

Bash script that automatically changes mouse and keyboard layouts based on active window

UPDATE - Fully working script located at the bottom of my answer for anyone who isn't interested in the process of getting there. I've been trying to write a bash script that makes use of xbindkeys,...
0
votes
1answer
180 views

Why does my left alt key trigger escape in linux?

For some reason, my left Alt key triggers escape. I've confirmed this using xev: KeyPress event, serial 37, synthetic NO, window 0x2e00001, root 0xf6, subw 0x0, time 299729, (1524,198), root:(...
0
votes
1answer
607 views

xfce keyboard layout panel plugin gets stuck

I use the xfce "Keyboard Layouts" panel plugin to switch between english and french layouts. Sometimes it gets stuck and clicking the button and alt-shift stops working. The only fix I have found is ...
1
vote
0answers
1k views

How to customize user keyboard layout(on Fedora 24)

I want to add symbols to the third level(AtlGr+<key>) of my keyboard layout(which is French (Canada)). I've written an xkb symbols snippet: default partial alphanumeric_keys xkb_symbols "...
2
votes
1answer
458 views

Fixing XKB layout

Long story short, I was trying to make a custom layout (hybrid Polish-Norwegian, adding åøæ on level 3 and 4 for |';), and somehow messed up the configuration. Despite reverting the offending file (/...
8
votes
1answer
3k views

What is the function of the modifier keys in xmodmap?

When I run xmodmap, I get something like this shift shift_l (0x32), shift_r (0x3e) lock control control_l (0x25), control_l (0x42), control_r (0x69) mod1 alt_l (0x40), ...
1
vote
1answer
627 views

Swap Left Alt and Right Alt on Kinesis Keyboard (or Any Keyboard)

Let me back up my problem a little bit for context. I am trying to use the same modifier-key-plus-letter combination between both vim and tmux so that, if I have a vim pane/whatever on one side and a ...
3
votes
0answers
523 views

How to map space to control and unmap win from Hyper_L using xkb/setxkbmap

I am trying to make my space act as control by default (and as space when tapped by using xcape) and to make capslock act as the only hyper modifier. I have a working configuration for this in xmodmap,...
1
vote
0answers
214 views

How to replace menu key with capslock and capslock with left control using xkb

I followed the instruction here by defining my own xkbsymbols partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key <COMP> { [ Caps_Lock ] }; replace key <CAPS> { [ ...
16
votes
3answers
3k views

How to make all applications respect my modified xkb layout?

I don't like jumping between the main keyboard and the movement keys, so I added the following to my xkb layout file. hidden partial xkb_symbols "movement" { key <AD08> { [ NoSymbol, ...
1
vote
2answers
216 views

How to add additional control key?

I am using xkb to add an additional control key as follows: key <HENK> { [ Control_R ] }; However, it does not work. I even tried xmodmap without success: xmodmap -e "...
0
votes
2answers
968 views

QT Application on Debian 7 ignores keyboard

I'm trying to get a teamspeak 3 client to run over a tightvnc -> xrdp session on Debian 7. As far as I know, TS3 uses QT as its GUI toolkit. I can open the application and the window gets shown, but ...
3
votes
1answer
958 views

Multiple XkbOptions in xorg.conf

How should I write multiple XkbOptions in xorg.conf? I've tried "option,option,option", "option, option, option", "option option option" and none of these worked - only the first option was executed.
8
votes
1answer
3k views

xkb set keyboard level 3 chooser to ctrl+alt

The title says it all: I'm interested to mimic the Windows behavior, where Left Ctrl + Left Alt acts as a 3rd level chooser. This is relatively important to me, because, as a programmer, on my ...
2
votes
2answers
1k views

Make Scroll Lock toggle Mouse Keys on home row

This is what I want: I press Scroll Lock on my keyboard. The Scroll Lock LED on my keyboard lights up. The keys around the right-hand home row now controls the mouse pointer (moving it, clicking, ...
4
votes
1answer
1k views

xkb - Remapped modifiers still work as modifiers

I'm using xkb to create my own keyboard layout. I have a slight problem, though. key <AE04> {[ Shift_L ]}; key <AE07> {[ Shift_R ]}; key <LFSH> {[ comma , semicolon , bar ]}; ...
4
votes
2answers
1k views

How to keep per-keyboard layout settings?

I am using xmodmap (and sometimes xkbcomp instead) to adjust my keyboard layout (e.g. mapping Caps Lock to the Mod3 modifier). When I plug a USB keyboard into my laptop or insert a YubiKey (which ...
2
votes
1answer
458 views

Configuring xkb so that left winkey is an additional left alt

I'm never using the windows key but for whatever reason on my laptop keyboard I often hit them by mistake trying to hit ALT. How can I configure xkb so that the left windows key acts as an additional ...
2
votes
3answers
312 views

How can I get more control over the keyboard layout than XKB offers?

I am starting to run up against the limits of XKB, the keyboard subsystem of the X window system. I would like to know if there is a way I can gain more flexibility. Here are examples of the kind of ...
5
votes
1answer
1k views

How to make Control-j works as Return without Control bit set(!) using xkb [and|or] xmodmap

It looks like extremely convenient for me to use Control-j instead of Return in xterm and vim, and I want to use this sequence for all X apps. It can be easily done using xkb by remapping ...
2
votes
1answer
2k views

Fixing keyboard layout on Xubuntu (can't use AltGr)

I'm going crazy with my laptop's keyboard. My layout is latin spanish, and works just fine. However at some time of the morning some magic auto-reconfiguration makes my layout implode and I can't use ...
1
vote
1answer
1k views

Custom keyboard map in Gnome (on ArchLinux)

I've just switched from LXDE to Gnome and I'm struggling with configuring the keyboard the way I want it. The Swedish keyboard layout is painful when programming (e.g. {[]} require right-hand finger ...
6
votes
1answer
2k views

XKB - remap arrow keys and preserve shift behaviour to select text

I realize arrow key remapping is an old problem, however I cannot seem to find a good solution that lets me select text with SHIFT + remapped keys as I would do with the vanilla arrow keys. For ...
4
votes
1answer
2k views

Using a custom keyboard map

I'm trying to not overwrite /usr/share/X11/symbols/us, even thought I've been doing that for years. So I added to ~/xkb/jpic, a copy of dvorak-alt-intl from /usr/share/X11/symbols/us, since that's ...
6
votes
1answer
2k views

How to disable dead keys in xkb (us / intl)

I am using the US International layout on X11 (-xkblayout us -xkbvariant intl). I would like to disable the dead keys, but without switching back to the US default layout. (I need the German Umlaute ...
4
votes
2answers
2k views

How to deploy a custom keyboard layout?

I was using the Bulgarian New Phonetic layout for cyrillic, but I am accustomed to touch-typing on a QWERTZ layout, so all the symbols are in the wrong place. So I decided to make my own layout in KDE....
3
votes
1answer
2k views

Remapping keys using xkb

My return key is physically dead. I'm running xubuntu. I am able to remap the AltGr to return using xmodmap. However when I reload xmodmap, either via shell or automatically during boot, it will hang ...
10
votes
1answer
6k views

Setting Hyper and Super modifiers for certain keys with setxkbmap or xmodmap

Problem: I want to modify/redefine my keyboard layout (pc105 se) so that when I press certain keys with mod3 (super) and mod4 (hyper), a different character is returned than usual. E.g. Keycode 61 ...
1
vote
1answer
639 views

Swap Ctrl with a character key in xkb

I'm currently trying to remap my H key (<AC06>) to act like the Ctrl key. I added the following in the /usr/.../xkb/symbols/us file: key <AC06> { [ Control_L, Control_L ] }; It seemed ...
0
votes
1answer
1k views

X11: Map Shift-Win to be AltGr?

How can one map the key combination Shift-Win to work as AltGr on Debian-based Linux distributions? XKB is very sparsely documented indeed! Thanks.
4
votes
2answers
2k views

Using AutoHotKey to enter the unicode symbols on Windows 7

I'm bilingual user and while writing I use mostly UK keyboard I have this layout set into my computer. However occasionally I want to write something in my native tongue and the math symbols are ...
2
votes
1answer
351 views

How to define letter in custom layout (xkb)?

I'm using Arch Linux. I'm trying to define, for example, letter 'a' with double grave in xkb custom layout. It's easy to define, for example, 'a' with grave: key <AC01> {[ a, A, agrave, ...
1
vote
0answers
239 views

Keyboard layout based on scancodes?

I would like to make a new keyboard layout in Linux that moves the modifier keys around. The problem is that this needs to be an xkb layout, because I still need to be able to switch to the Qwerty ...
3
votes
2answers
1k views

Modifying keyboard layout in X11: using Alt+shift+2 for @

I'm using a MacBook with Croatian layout. Common PC Croatian layout (on Windows and in Linux) uses combinations with AltGr to get various symbols, such as... AltGr+V for @ AltGr+F for [ AltGr+B for {...
2
votes
1answer
258 views

Swapping numbers and symbols in X11, but keeping alt+n

As a work-environment optimization, I'd like to switch the numbers and symbols at the top of the keyboard, so that when you press them you'd get the symbol by default and the digit when you hold down ...