Questions tagged [setxkbmap]

33 questions
6
votes
0 answers

Map right Alt to Ctrl key

I use Linux Mint Mate 17, which is based on Ubuntu 14.04, and I want to map my right Alt to act as a Ctrl key (since I can reach it with my right thumb, which is more comfortable).  How can I do that? I tried to search online.  However, most guides…
ars
  • 343
  • 2
  • 11
5
votes
2 answers

Wrong keyboard layout even though everything in the OS seem to report correct/wanted layout - e.g. åäö becomes [';

I installed Manjaro 21.x (don't remember exact version) a few months back and I chose the Gnome flavor. As per usual I set up my OS to have two keyboard layouts (US and SE) and life was great. Then life became less great as I realised Gnome is not…
3
votes
1 answer

How to use setxkbmap to map keys permanently?

I'm currently using xmodmap to remap some keys, keeping my configuration in a .Xmodmap file, but every time I boot my laptop, or my screen locks, the customization is lost and I have to run xmodmap ~/.Xmodmap once again, even though I set the…
Lucas
  • 33
  • 5
3
votes
1 answer

Setting CAPS_LOCK + arrows to Home, PgUp, PgDown, End in xkb

I'm trying to set some CapsLock + arrows keybindings in xkb Using ArchLinux, KDE, Xorg What I'm trying to achieve (wishful thinking) Ultimately, the perfect solution would be No modifier CapsLock as…
Esgariot
  • 41
  • 3
3
votes
0 answers

How to map a sequence of keys to ?

I have mapped Insert to Multi_key (also known as Compose) so I can input ä or µ. I've used xmodmap -e 'keycode 118 = Multi_key' in my wm init script. Now, checking /usr/share/X11/locale/en_US.UTF-8/Compose, I see there are already rules to input…
Zeta.Investigator
  • 880
  • 1
  • 7
  • 25
2
votes
1 answer

How to remap Caps Lock to a specific key?

By default I have the following key mapping: $ xmodmap -pke ... keycode 49 = oe OE oe OE leftdoublequotemark rightdoublequotemark leftdoublequotemark ... keycode 66 = Caps_Lock NoSymbol Caps_Lock ... I assigned Ctlr to keycode 66 by doing $…
2
votes
0 answers

How to set Caps Lock as Hyper (and change modifiers) using xkb?

This is currently my .xsessionrc file: xmodmap -e "remove Mod4 = Hyper_L" -e "add Mod3 = Hyper_L" -e "lock = Hyper_L" -e "keysym Caps_Lock = Hyper_L" & bspwm & xfdesktop -D & What I did was unset Hyper_L as a Mod4 modifier (which is taken by the…
cidra
  • 121
  • 2
2
votes
3 answers

XKB not recognizing my custom layout

I created a custom keyboard layout (the file is called “brc”) based on Colemak for my Lubuntu 18.04, and copied it to /usr/share/X11/xkb/symbols: default partial xkb_symbols "basic" { name[Group1]= "brc"; // Alphanumeric section key…
ssL
  • 33
  • 6
1
vote
0 answers

How to set keyboard layout and keep configuration?

I changed from gnome to i3wm and now everytime I log in to my computer the keyboard layout is set to english (my keyboard is spanish). I was able to change it with this command but just for the current session. setxkbmap -layout latam I tried…
Luis Urán
  • 11
  • 1
1
vote
0 answers

Is there an API to query setxkbmap's current layout?

A bit related to this previous question of mine, I wonder if there's a way to query what is the current layout. Say I have run setxkbmap -layout it,ru -variant ,phonetic -option 'grp:caps_toggle' and that I've presset CapsLock a few times. How can…
Enlico
  • 1,471
  • 16
  • 35
1
vote
0 answers

Adding a single keycode to the existing XKB configuration

I have a MECHREV laptop, /sys/class/dmi/id/product_name "Jiaolong Series GM5ZG0O". Its keyboard has a button for toggling trackpad on/off. However this key emits keycode 93 which is not mapped to anything in /usr/share/X11/xkb/keycodes/evdev which…
SnakE
  • 151
  • 5
1
vote
0 answers

How to keep keyboard mapping after reboot?

In order to remap my keyboard I use the following commands: $ setxkbmap -layout fr -variant latin9 -option '' $ setxkbmap -option ctrl:nocaps $ printf "keycode 127 = Caps_Lock NoSymbol Caps_Lock" > ~/.Xmodmap $ xmodmap ~/.Xmodmap After that,…
1
vote
1 answer

Use left-ctrl to swap keyboard layout?

If I want to switch between two keyboard layouts (gb and apl) by holding down the right ctrl key, I can run: setxkbmap -layout gb,apl -variant ,dyalog -option grp:rctrl_switch Is there anything equivalent for the left ctrl key? I've tried…
Lapwing482
  • 11
  • 1
1
vote
1 answer

Using setxkbmap to disable the menu key

On my Debian for Raspberry Pi, the win key pops open the desktop's main menu. This blocks all other keyboard input, so I constantly trip over it. How can I disable the menu behavior using setxkbmap so that no key ever opens the desktop menu? It…
Byron Hawkins
  • 179
  • 1
  • 10
1
vote
1 answer

implicit types in xkb

The keymap source (in .xkb format) of the current XKB configuration can be obtained by running xkbcomp $DISPLAY -. Mapping to keysyms is done in the xkb_symbols section of this file. Some of the definitions in this section explicitly define the…
user001
  • 3,598
  • 5
  • 39
  • 54
1
2 3