Questions tagged [setxkbmap]

24 questions
13
votes
3 answers

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 internal one, but unfortunately, "control" and…
Martin
  • 191
12
votes
1 answer

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 produces 'minus' (-) when pressed normally and…
Xyz
  • 361
7
votes
2 answers

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 changing the same settings?! For instance here's my…
0xcurb
  • 71
6
votes
2 answers

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 xmodmap changes. .Xmodmap file does not help…
kolypto
  • 3,121
4
votes
2 answers

Has anyone successfully fixed Mac Home/End keys functionality permanently?

I am on OSX 10.8+ and has anyone successfully fixed Mac Home/End keys functionality permanently? And I mean Home/End actually go to the beginning and end of the line. KeyRemap4MacBook works almost everywhere but there are still certain situations…
Shaun
  • 217
4
votes
1 answer

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 what I'm going to work on: default partial…
jpic
  • 131
3
votes
0 answers

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, but it keep resetting randomly, so I have to…
joelostblom
  • 2,699
  • 4
  • 24
  • 28
3
votes
1 answer

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 positions. It's intended to be used with a special piece…
XNRL
  • 105
  • 2
  • 9
3
votes
1 answer

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 found a working solution yet. I know the question…
michael
  • 31
2
votes
1 answer

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+CapsLock into BackSpace. If I want to swap the mappings…
Enno
  • 201
2
votes
1 answer

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 alt key? (so, yes, I do want both the physical…
2
votes
0 answers

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 Shift key to PageUp. I ran xmodmap -pke >…
2
votes
1 answer

Xfce window manager forget Super-D keyboard shortcut when I use setxkbmap

I'm running Linux Mint 20 with the Xfce desktop environment. As I am used to hitting Super+D for minimizing all windows, I changed the shortcut from Ctrl-Alt-D to Super+D in Settings / Window Manager / Keyboard. It works perfectly. Then a few…
2
votes
1 answer

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 PrtSc Now, following the steps mentioned in this…
1
vote
0 answers

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 { [ Caps_Lock ] }; replace key { [ Control_L ] }; }; The menu key now becomes Caps_Lock, but the…
1
2