LoginSignup
0
0

More than 3 years have passed since last update.

Gnome-tweaks と xmodmap は併用できなかった

Posted at

目的

無変換 → Ctrl

方法

xmodmapに追加する

clear control
[...]
!keycode 102 = Muhenkan NoSymbol Muhenkan
keycode 102 = Control_L NoSymbol Control_L
[...]
add control = Control_L Control_R

エラー

$ xmodmap ~/.Xmodmap 
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  118 (X_SetModifierMapping)
  Value in failed request:  0x17
  Serial number of failed request:  260
  Current serial number in output stream:  260

解決法

Gnome-tweaksで、CapslockキーをShiftと同時押しをする設定をしていた。

Gnome-tweaksの設定を解除したら、xmodmapの設定が反映されるようになりました。

あとがき

ubuntuのキーマップを変えるのはxmodmapが一番楽だと思う。

というか、xkbの設定いじったり、xkeysnailだったり、いろんな方法があるけど、やりたいことがシンプルならxmodmapが良いと思いました。

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