Questions tagged [setxkbmap]

The tag has no usage guidance.

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

How can I quickly switch between two out of multiple languages?

First of all I've found some similar questions, but their answers are not what I'm looking for. https://askubuntu.com/questions/871678/how-can-i-quickly-switch-between-two-out-of-multiple-languages ...
0
votes
0answers
17 views

Keyboard works but can't change settings in Ubuntu or setxkbmap

I'm on Kubuntu 18.04. I frequently switch between TKL and HHKB keyboards. To keep Ctrl position consistent between keyboards I set my keyboard preferences to use Caps Lock as Ctrl so the TKL behaves ...
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 ...
1
vote
1answer
119 views

Changing keyboard layout when keyboard is plugged with udev

I want the activate a keyboard layout and to enable "sticky" modifier keys when my external keyboard is plugged in. I've made this udev rule: /etc/udev/rules.d/keyboard.rules ACTION=="...
0
votes
0answers
13 views

Modify a keyboard layout in Linux to include umlauts

I'm using setxkbmap hr us keyboard, pressing AltGr+; to get č, AlgGr+[ to get š, and so on. I want AltGr+a to be ä, AltGr+u to be ü, and AltGr+o to be ö. So essentially, I want to take a bit from the ...
1
vote
1answer
292 views

Mapping capslock to printscreen key using setxkbmap

I am trying to map my caps-lock key to the print-screen key. Looking up in the /usr/share/X11/xkb/rules directory, and searching for print, prnt etc., I found out that the key is called one of prsc ...
5
votes
2answers
666 views

Difference between setxkbmap and localectl

I'm a bit confused regarding the difference/relationship between localectl and setxkbmap. Is any of them meant to supersede the other? Or are they meant to be used in conjunction? Are they even ...
8
votes
3answers
4k views

How to swap control and function key on Lenovo external keyboard?

I use a Lenovo ThinkPad (X220i) and like all ThinkPad users, I swapped "control" and "function" in the BIOS. Now I bought an external USB keyboard by Lenovo with a similar keyboard layout as the ...
0
votes
1answer
595 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 ...
3
votes
0answers
525 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,...
2
votes
1answer
286 views

xmodmap: `Shift+CapsLock` -> `Delete` returns error bell

Because CapsLock has the keycode 66 on my English_US keyboard layout, the command xmodmap -e "clear Lock" -e "keycode 66 shift = Delete BackSpace" turns CapsLock into the Delete key and Shift+...
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> { [ ...
2
votes
1answer
1k views

setxkbmap: how to apply options to a specific device only?

I have two keyboards, one used primarily for typing and the other for R&R. The latter is Razer Orbweaver, which is like a half of a normal keyboard with several other keys slapped in various ...
2
votes
1answer
965 views

Switching left alt and left win

I have a Thinkpad X230 (german layout, [edit]running linux[/edit]) and I want to switch the left win- and the left alt-key somehow with the right alt-key (AltGr) not being touched. However, I haven't ...
1
vote
1answer
747 views

Mac Home/End Fixed Once and For All

Has anyone successfully fixed Mac Home/End keys permanently? And I mean Home/End actually go to the beginning and end of the line. KeyRemap4MacBook works almost everywhere but there are still ...
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 ...
1
vote
1answer
262 views

How to configure X kbmap for 4 languages while keeping two “main” languages easily switchable?

Now I have setxkbmap -model acer_laptop -layout lang1,lang2 -variant , setxkbmap -option -option grp:caps_toggle in a startup script. It works well for two languages. I want to have 4 languages (...
2
votes
0answers
586 views

How do I permanently map Shift-Right to PageUp on xubuntu?

I got myself a laptop and the keyboard is slightly goofed up because the right Shift key is in a place where I have typically had the PageUp key. So, I wanted to figure out how to remap the right ...
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 ...
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
197 views

Changing languages rapidly causes Linux to crash

So I'm running Xmonad on my college computer (which runs Kubuntu) and whenever I leave my desk, instead of using x-screensaver which is incredibly buggy and slow, I just change to another workstation, ...
6
votes
2answers
8k views

Linux, Ubuntu & Apple Aluminium keyboard: remap greater/less with tilde

I have an Apple Aluminium keyboard. To the left of 1 key I have the less/greater (< >) key, not grave/tilde (` ~). xmodmap does not work for me: layout switching (done with setxkbmap) resets my ...