Created
June 12, 2019 00:39
-
-
Save cmplstofB/5f3ec61553400eba7b01fff575ce06c5 to your computer and use it in GitHub Desktop.
XKB設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xkb_keymap { | |
xkb_keycodes { include "evdev+aliases(qwerty)" }; | |
xkb_types { include "complete" }; | |
xkb_compat { include "complete+japan" }; | |
xkb_symbols { | |
include "pc+jp+inet(evdev)" | |
include "capslock(escape)" | |
include "_" | |
}; | |
xkb_geometry { include "pc(pc105)" }; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_:yensign = +_(yensign) | |
_:plusminus = +_(plusminus) | |
_:muhenkan_lctrl = +_(muhenkan_lctrl) | |
_:henkan_rctrl = +_(henkan_rctrl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! model | |
! pc101 Generic 101-key PC | |
! option | |
_:yensign Keyboard with Yen sign | |
_:plusminus Keyboard with Plus Minus | |
_:muhenkan_lctrl Make Muenkan an additional Left Control | |
_:henkan_rctrl Make Henkan an additional Right Control |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd"> | |
<xkbConfigRegistry version="1.1"> | |
<optionList> | |
<group allowMultipleSelection="true"> | |
<configItem> | |
<name>_</name> | |
<description>User customed keyboard options</description> | |
</configItem> | |
<option> | |
<configItem> | |
<name>_:yensign</name> | |
<description>Keyboard with Yen sign</description> | |
</configItem> | |
</option> | |
<option> | |
<configItem> | |
<name>_:plusminus</name> | |
<description>Keyboard with Plus Minus</description> | |
</configItem> | |
</option> | |
<option> | |
<configItem> | |
<name>_:muhenkan_lctrl</name> | |
<description>Make Muenkan an additional Left Control</description> | |
</configItem> | |
</option> | |
<option> | |
<configItem> | |
<name>_:henkan_rctrl</name> | |
<description>Make Henkan an additional Right Control</description> | |
</configItem> | |
</option> | |
</group> | |
</optionList> | |
</xkbConfigRegistry> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default partial alphanumeric_keys | |
xkb_symbols "_" { | |
include "_(yensign_plusminus)" | |
include "_(bslash_bar)" | |
include "_(zero_underscore)" | |
include "_(muhenkan_lctrl)" | |
include "_(henkan_rctrl)" | |
include "_(hirakata_ralt)" | |
include "_(menu_rwin)" | |
include "_(eisu_esc)" | |
name[Group1]= "User customed keyboard options"; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "yensign_plusminus" { | |
name[Group1]= "Set \[bslash/bar\] key to \[yensign/plusminus\]"; | |
key <AE13> { [ yen, plusminus ] }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "bslash_bar" { | |
name[Group1]= "Set \[bslash/underscore\] key to \[bslash/bar\]"; | |
key <AB11> { [ backslash, bar ] }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "zero_underscore" { | |
name[Group1]= "Set \[zero/<empty>\] key to \[zero/underscore\]"; | |
key <AE10> { [ 0, underscore ] }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "muhenkan_lctrl" { | |
name[Group1]= "Make Muenkan an additional Left Control"; | |
replace key <NFER> { [ Control_L ] }; | |
replace key <MUHE> { [ Control_L ] }; | |
modifier_map Control { <NFER>, <MUHE>, <LCTL> }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "henkan_rctrl" { | |
name[Group1]= "Make Henkan an additional Right Control"; | |
replace key <XFER> { [ Control_R ] }; | |
replace key <HENK> { [ Control_R ] }; | |
modifier_map Control { <XFER>, <HENK>, <RCTL> }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "hirakata_ralt" { | |
name[Group1]= "Make Henkan an additional Right Alt"; | |
replace key <HKTG> { [ Alt_R ] }; | |
modifier_map Mod1 { <HKTG>, <RALT> }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "menu_rwin" { | |
name[Group1]= "Make Menu an additional Right Win"; | |
replace key <MENU> { [ Super_R ] }; | |
modifier_map Mod4 { <MENU>, <RWIN> }; | |
}; | |
partial alphanumeric_keys | |
xkb_symbols "eisu_esc" { | |
name[Group1]= "Make Eisu an additional Escape"; | |
key <CAPS> { [ Escape, Escape ] }; | |
key <EISU> { [ Escape, Escape ] }; | |
}; |
~/.xsessionrc
echo xkbcomp -I$XDG_CONFIG_HOME/X11/xkb $XDG_CONFIG_HOME/X11/xkb/keymap/_.xkb \$DISPLAY > ~/.xsessionrc
$DISPLAY
引数の位置等を不用意に変えないこと。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
始めに
$ xkbcomp $DISPLAY default.xkb
としてバックアップ用ファイル
default.xkb
を作成すること。