Permalink
Browse files

Add xkb config for Linux

  • Loading branch information...
lambdalisue committed Oct 27, 2016
1 parent 3f0c951 commit 870fd1d3ed456a35046fc7b80eacff12eafa8e0d
Showing with 31 additions and 0 deletions.
  1. +8 −0 home/.config/xkb/keymap/my
  2. +22 −0 home/.config/xkb/symbols/my
  3. +1 −0 home/.xsessionrc
@@ -0,0 +1,8 @@
// Usage: xkbcomp -I$HOME/.config/xkb ~/.config/xkb/keymap/usjis $DISPLAY
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete+ledcaps(shift_lock)+ledscroll(scroll_lock)+lednum(num_lock)" };
xkb_symbols { include "pc+inet(evdev)+ctrl(nocaps)+my(usjis)" };
xkb_geometry { include "pc(pc104)" };
};
@@ -0,0 +1,22 @@
// The followings may need to be executed in the shell
// xset -r 100 # <MUHE>
// xset -r 102 # <HENK>
partial modifier_keys
xkb_symbols "usjis" {
include "us"
name[Group1]= "English (US) on JIS";
// NOTE: ISO_Level2_Latch = Sticky shift
replace key <AE13> { [ grave, asciitilde ] }; // Yen
replace key <AB11> { [ Alt_R, Meta_R ] }; // Ro
replace key <HKTG> { [ Return ] }; // Hiragana/Katakana
replace key <MUHE> { [ Control_L ] }; // Muhenkan
replace key <HENK> { [ ISO_Level2_Latch ] }; // Henkan
replace key <MENU> { [ Multi_key ] }; // Application (Menu)
replace key <LFSH> { [ Muhenkan ] };
replace key <RTSH> { [ Henkan ] };
modifier_map Control { <MUHE>, Control_L, Control_R };
modifier_map Shift { <HENK>, <AB11> };
modifier_map Mod1 { <AB11>, Alt_L, Alt_R };
};
View
@@ -0,0 +1 @@
xkbcomp -I$HOME/.config/xkb $HOME/.config/xkb/keymap/my "${DISPLAY%%.*}" >> $HOME/.xsession-xkbcomp-log

0 comments on commit 870fd1d

Please sign in to comment.