Add lv5:rctrl_switch patch for Debian 12
This commit is contained in:
parent
f11f1fe92a
commit
b04b841b24
2 changed files with 57 additions and 0 deletions
50
roles/debian/files/debian-12-add-lv5-rctrl-switch.patch
Normal file
50
roles/debian/files/debian-12-add-lv5-rctrl-switch.patch
Normal file
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
Add the lv5:rctrl_switch option to xkeyboard-config for Debian 12.
|
||||
This isn't in a release until xkeyboard-config v2.36.
|
||||
|
||||
Apply it (as root) with:
|
||||
|
||||
cd /usr/share/X11/xkb/rules
|
||||
patch -p1 < /path/to/this/file.patch
|
||||
|
||||
Based on:
|
||||
https://github.com/freedesktop/xkeyboard-config/commit/da0a43b97aba73a6d60bb20d739b381748a56bba
|
||||
|
||||
diff -u a/base b/base
|
||||
--- a/base 2023-01-22 17:03:50.604229639 +0000
|
||||
+++ b/base 2023-01-22 17:04:13.051789551 +0000
|
||||
@@ -1264,6 +1264,7 @@
|
||||
lv3:lsgt_switch_latch = +level3(lsgt_switch_latch)
|
||||
lv5:lsgt_switch = +level5(lsgt_switch)
|
||||
lv5:ralt_switch = +level5(ralt_switch)
|
||||
+ lv5:rctrl_switch = +level5(rctrl_switch)
|
||||
lv5:lsgt_switch_lock = +level5(lsgt_switch_lock)
|
||||
lv5:ralt_switch_lock = +level5(ralt_switch_lock)
|
||||
lv5:lwin_switch_lock = +level5(lwin_switch_lock)
|
||||
diff -u a/base.xml b/base.xml
|
||||
--- a/base.xml 2023-01-22 17:03:50.608229561 +0000
|
||||
+++ b/base.xml 2023-01-22 17:04:13.051789551 +0000
|
||||
@@ -7858,6 +7858,12 @@
|
||||
</option>
|
||||
<option>
|
||||
<configItem>
|
||||
+ <name>lv5:rctrl_switch</name>
|
||||
+ <description>Right Ctrl chooses 5th level</description>
|
||||
+ </configItem>
|
||||
+ </option>
|
||||
+ <option>
|
||||
+ <configItem>
|
||||
<name>lv5:lsgt_switch_lock</name>
|
||||
<description>The "< >" key chooses 5th level and acts as a one-time lock if pressed with another 5th level chooser</description>
|
||||
</configItem>
|
||||
diff -u a/evdev b/evdev
|
||||
--- a/evdev 2023-01-22 17:03:50.608229561 +0000
|
||||
+++ b/evdev 2023-01-22 17:04:13.055789472 +0000
|
||||
@@ -1151,6 +1151,7 @@
|
||||
lv3:lsgt_switch_latch = +level3(lsgt_switch_latch)
|
||||
lv5:lsgt_switch = +level5(lsgt_switch)
|
||||
lv5:ralt_switch = +level5(ralt_switch)
|
||||
+ lv5:rctrl_switch = +level5(rctrl_switch)
|
||||
lv5:lsgt_switch_lock = +level5(lsgt_switch_lock)
|
||||
lv5:ralt_switch_lock = +level5(ralt_switch_lock)
|
||||
lv5:lwin_switch_lock = +level5(lwin_switch_lock)
|
|
@ -20,3 +20,10 @@
|
|||
basedir: /usr/share/X11/xkb/rules
|
||||
strip: 1
|
||||
when: ansible_distribution_version == "11"
|
||||
- name: Enable lv5:rctrl_switch on Debian 12
|
||||
become: true
|
||||
ansible.posix.patch:
|
||||
src: debian-12-add-lv5-rctrl-switch.patch
|
||||
basedir: /usr/share/X11/xkb/rules
|
||||
strip: 1
|
||||
when: ansible_distribution_version == "12"
|
||||
|
|
Loading…
Reference in a new issue