Last active
October 26, 2020 12:10
-
-
Save lo48576/4a4aced3b087cd74f018d0613afaf642 to your computer and use it in GitHub Desktop.
xkeyboard-config-2.31 の git リポジトリや tar 展開後ファイル群に当てるパッチ。「変換」キーを Super として使う設定と「カタカナひらがなローマ字」を Ctrl として使う設定。
This file contains 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
commit e9547b95589eaf45068076a5a05be8a25b8e9df2 | |
Author: YOSHIOKA Takuma <lo48576@hard-wi.red> | |
Date: 2018-04-02 14:25:11 +0900 | |
Add custom settings for @lo48576 | |
diff --git a/rules/0042-o_s.part b/rules/0042-o_s.part | |
index 0b03935b7e75..fe5ad64b398f 100644 | |
--- a/rules/0042-o_s.part | |
+++ b/rules/0042-o_s.part | |
@@ -162,6 +162,10 @@ | |
esperanto:dvorak = +epo(dvorak) | |
esperanto:colemak = +epo(colemak) | |
terminate:ctrl_alt_bksp = +terminate(ctrl_alt_bksp) | |
+ lo48576:henkan_lsuper = +lo48576(henkan_lsuper) | |
+ lo48576:henkan_rsuper = +lo48576(henkan_rsuper) | |
+ lo48576:hirakata_lctrl = +lo48576(hirakata_lctrl) | |
+ lo48576:hirakata_rctrl = +lo48576(hirakata_rctrl) | |
keypad:pointerkeys = +keypad(pointerkeys) | |
apple:alupckeys = +macintosh_vndr/apple(alupckeys) | |
shift:both_capslock = +shift(both_capslock) | |
diff --git a/rules/base.xml b/rules/base.xml | |
index 8ba4ec634a64..c8574aca6c1b 100644 | |
--- a/rules/base.xml | |
+++ b/rules/base.xml | |
@@ -7730,5 +7730,35 @@ | |
</configItem> | |
</option> | |
</group> | |
+ <group allowMultipleSelection="true"> | |
+ <configItem> | |
+ <name>lo48576</name> | |
+ <_description>Custom config by @lo48576</_description> | |
+ </configItem> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_lsuper</name> | |
+ <_description>Henkan as Super-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_rsuper</name> | |
+ <_description>Henkan as Super-R</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_lctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_rctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-R</_description> | |
+ </configItem> | |
+ </option> | |
+ </group> | |
</optionList> | |
</xkbConfigRegistry> | |
diff --git a/symbols/Makefile.am b/symbols/Makefile.am | |
index 28d4f7b2bb36..e65c2da40a14 100644 | |
--- a/symbols/Makefile.am | |
+++ b/symbols/Makefile.am | |
@@ -20,6 +20,7 @@ dist_symbols_DATA = \ | |
kr kz \ | |
la latam latin \ | |
lk lt lv \ | |
+ lo48576 \ | |
ma mao md me \ | |
mk ml mm \ | |
mn mt mv my \ | |
diff --git a/symbols/lo48576 b/symbols/lo48576 | |
new file mode 100644 | |
index 000000000000..ee3b21aba406 | |
--- /dev/null | |
+++ b/symbols/lo48576 | |
@@ -0,0 +1,21 @@ | |
+partial alphanumeric_keys | |
+xkb_symbols "henkan_lsuper" { | |
+ replace key <HENK> { [ Super_L ] }; | |
+}; | |
+ | |
+partial alphanumeric_keys | |
+xkb_symbols "henkan_rsuper" { | |
+ replace key <HENK> { [ Super_R ] }; | |
+}; | |
+ | |
+partial modifier_keys | |
+xkb_symbols "hirakata_lctrl" { | |
+ replace key <HKTG> { [ Control_L, Control_L ] }; | |
+ modifier_map Control { <HKTG>, <LCTL> }; | |
+}; | |
+ | |
+partial modifier_keys | |
+xkb_symbols "hirakata_rctrl" { | |
+ replace key <HKTG> { [ Control_R, Control_R ] }; | |
+ modifier_map Control { <HKTG>, <RCTL> }; | |
+}; |
This file contains 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
diff -Naur xkeyboard-config-2.31.orig/rules/0042-o_s.part xkeyboard-config-2.31/rules/0042-o_s.part | |
--- xkeyboard-config-2.31.orig/rules/0042-o_s.part 2020-10-07 08:24:08.000000000 +0900 | |
+++ xkeyboard-config-2.31/rules/0042-o_s.part 2020-10-26 20:29:35.994125071 +0900 | |
@@ -162,6 +162,10 @@ | |
esperanto:dvorak = +epo(dvorak) | |
esperanto:colemak = +epo(colemak) | |
terminate:ctrl_alt_bksp = +terminate(ctrl_alt_bksp) | |
+ lo48576:henkan_lsuper = +lo48576(henkan_lsuper) | |
+ lo48576:henkan_rsuper = +lo48576(henkan_rsuper) | |
+ lo48576:hirakata_lctrl = +lo48576(hirakata_lctrl) | |
+ lo48576:hirakata_rctrl = +lo48576(hirakata_rctrl) | |
keypad:pointerkeys = +keypad(pointerkeys) | |
apple:alupckeys = +macintosh_vndr/apple(alupckeys) | |
shift:both_capslock = +shift(both_capslock) | |
diff -Naur xkeyboard-config-2.31.orig/rules/base.xml xkeyboard-config-2.31/rules/base.xml | |
--- xkeyboard-config-2.31.orig/rules/base.xml 2020-10-07 08:24:08.000000000 +0900 | |
+++ xkeyboard-config-2.31/rules/base.xml 2020-10-26 20:29:35.994125071 +0900 | |
@@ -7730,5 +7730,35 @@ | |
</configItem> | |
</option> | |
</group> | |
+ <group allowMultipleSelection="true"> | |
+ <configItem> | |
+ <name>lo48576</name> | |
+ <_description>Custom config by @lo48576</_description> | |
+ </configItem> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_lsuper</name> | |
+ <_description>Henkan as Super-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_rsuper</name> | |
+ <_description>Henkan as Super-R</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_lctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_rctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-R</_description> | |
+ </configItem> | |
+ </option> | |
+ </group> | |
</optionList> | |
</xkbConfigRegistry> | |
diff -Naur xkeyboard-config-2.31.orig/rules/evdev.xml xkeyboard-config-2.31/rules/evdev.xml | |
--- xkeyboard-config-2.31.orig/rules/evdev.xml 2020-10-07 08:24:26.000000000 +0900 | |
+++ xkeyboard-config-2.31/rules/evdev.xml 2020-10-26 20:31:50.268149873 +0900 | |
@@ -7730,5 +7730,35 @@ | |
</configItem> | |
</option> | |
</group> | |
+ <group allowMultipleSelection="true"> | |
+ <configItem> | |
+ <name>lo48576</name> | |
+ <_description>Custom config by @lo48576</_description> | |
+ </configItem> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_lsuper</name> | |
+ <_description>Henkan as Super-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:henkan_rsuper</name> | |
+ <_description>Henkan as Super-R</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_lctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-L</_description> | |
+ </configItem> | |
+ </option> | |
+ <option> | |
+ <configItem> | |
+ <name>lo48576:hirakata_rctrl</name> | |
+ <_description>Hiragana-Katakana-Romaji as Ctrl-R</_description> | |
+ </configItem> | |
+ </option> | |
+ </group> | |
</optionList> | |
</xkbConfigRegistry> | |
diff -Naur xkeyboard-config-2.31.orig/symbols/Makefile.am xkeyboard-config-2.31/symbols/Makefile.am | |
--- xkeyboard-config-2.31.orig/symbols/Makefile.am 2020-10-07 08:24:08.000000000 +0900 | |
+++ xkeyboard-config-2.31/symbols/Makefile.am 2020-10-26 20:29:35.994125071 +0900 | |
@@ -20,6 +20,7 @@ | |
kr kz \ | |
la latam latin \ | |
lk lt lv \ | |
+ lo48576 \ | |
ma mao md me \ | |
mk ml mm \ | |
mn mt mv my \ | |
diff -Naur xkeyboard-config-2.31.orig/symbols/Makefile.in xkeyboard-config-2.31/symbols/Makefile.in | |
--- xkeyboard-config-2.31.orig/symbols/Makefile.in 2020-10-07 08:24:15.000000000 +0900 | |
+++ xkeyboard-config-2.31/symbols/Makefile.in 2020-10-26 21:07:58.591524838 +0900 | |
@@ -335,6 +335,7 @@ | |
kr kz \ | |
la latam latin \ | |
lk lt lv \ | |
+ lo48576 \ | |
ma mao md me \ | |
mk ml mm \ | |
mn mt mv my \ | |
diff -Naur xkeyboard-config-2.31.orig/symbols/lo48576 xkeyboard-config-2.31/symbols/lo48576 | |
--- xkeyboard-config-2.31.orig/symbols/lo48576 1970-01-01 09:00:00.000000000 +0900 | |
+++ xkeyboard-config-2.31/symbols/lo48576 2020-10-26 20:29:35.994125071 +0900 | |
@@ -0,0 +1,21 @@ | |
+partial alphanumeric_keys | |
+xkb_symbols "henkan_lsuper" { | |
+ replace key <HENK> { [ Super_L ] }; | |
+}; | |
+ | |
+partial alphanumeric_keys | |
+xkb_symbols "henkan_rsuper" { | |
+ replace key <HENK> { [ Super_R ] }; | |
+}; | |
+ | |
+partial modifier_keys | |
+xkb_symbols "hirakata_lctrl" { | |
+ replace key <HKTG> { [ Control_L, Control_L ] }; | |
+ modifier_map Control { <HKTG>, <LCTL> }; | |
+}; | |
+ | |
+partial modifier_keys | |
+xkb_symbols "hirakata_rctrl" { | |
+ replace key <HKTG> { [ Control_R, Control_R ] }; | |
+ modifier_map Control { <HKTG>, <RCTL> }; | |
+}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment