diff --git a/20-keyboard.conf b/20-keyboard.conf new file mode 100644 index 0000000..b34b743 --- /dev/null +++ b/20-keyboard.conf @@ -0,0 +1,9 @@ +# ln -s this /etc/X11/xorg.conf.d + +Section "InputClass" + Identifier "Keyboard Defaults" + MatchIsKeyboard "yes" +# Option "XkbModel" "acer_laptop" +# Option "XkbLayout" "jp" + Option "XkbOptions" "ctrl:nocaps,ctrl:menu_rctrl" +EndSection diff --git a/xinitrc b/xinitrc index 316ecb2..acf792a 100644 --- a/xinitrc +++ b/xinitrc @@ -1,8 +1,7 @@ test "`hostname`" == "arch-aspireone" && setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first -setxkbmap -option "ctrl:nocaps" -xmodmap -e 'keycode 135 = Alt_R Meta_R' # menu key as alt +setxkbmap -option "ctrl:nocaps,ctrl:menu_rctrl" xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt #xmodmap -e 'remove Lock = Caps_Lock' #xmodmap -e 'add Control = Caps_Lock'