0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ubuntu:keyboard mapping:swap

Last updated at Posted at 2020-09-05

###1. Examine Default Mapping

terminal
xmodmap -pke

###2. Write Code

script
# clear meta key mappings
clear shift
clear control
clear mod1

# swap key mappings
keycode  50 = Alt_L NoSymbol Alt_L
keycode  62 = Control_R NoSymbol Control_R
keycode  64 = Shift_L Meta_L Shift_L Meta_L
keycode  77 = KP_Delete KP_Delete KP_Delete KP_Delete
keycode 119 = Hiragana Hiragana Hiragana

# activate new meta key mappings
add control = Control_L Control_R
add mod1 = Alt_L Alt_R
add shift = Shift_L

###3. Run

terminal
xmodmap script
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?