diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2024-02-15 10:39:53 +1000 |
---|---|---|
committer | Sergey Udaltsov <sergey.udaltsov@gmail.com> | 2024-05-24 14:08:14 +0000 |
commit | 87336bb1c6bd987ca2db4ae34155d4cf9767e290 (patch) | |
tree | a87ce4130387a3b09a4e37e1f3836b4db7578b88 | |
parent | be26ed56ac78e3208aa6074fdb3d4424a309b0df (diff) |
compat: add some files to remove special casing in the rules
-rw-r--r-- | compat/caps | 4 | ||||
-rw-r--r-- | compat/grab | 3 | ||||
-rw-r--r-- | compat/grp_led | 11 | ||||
-rw-r--r-- | compat/mod_led | 4 | ||||
-rw-r--r-- | rules/0043-o_c.part | 12 |
5 files changed, 28 insertions, 6 deletions
diff --git a/compat/caps b/compat/caps index 4793051e..4ed43105 100644 --- a/compat/caps +++ b/compat/caps @@ -9,3 +9,7 @@ partial xkb_compatibility "caps_lock" { action = LockMods(modifiers = Lock); }; }; + +partial xkb_compatibility "shiftlock" { + include "ledcaps(shift_lock)" +}; diff --git a/compat/grab b/compat/grab new file mode 100644 index 00000000..e51d8460 --- /dev/null +++ b/compat/grab @@ -0,0 +1,3 @@ +partial xkb_compatibility "break_actions" { + include "xfree86(grab_break)" +}; diff --git a/compat/grp_led b/compat/grp_led new file mode 100644 index 00000000..9755c477 --- /dev/null +++ b/compat/grp_led @@ -0,0 +1,11 @@ +partial xkb_compatibility "num" { + include "lednum(group_lock)" +}; + +partial xkb_compatibility "caps" { + include "ledcaps(group_lock)" +}; + +partial xkb_compatibility "scroll" { + include "ledscroll(group_lock)" +}; diff --git a/compat/mod_led b/compat/mod_led new file mode 100644 index 00000000..bb4c9647 --- /dev/null +++ b/compat/mod_led @@ -0,0 +1,4 @@ +partial +xkb_compatibility "compose" { + include "ledcompose(compose)" +}; diff --git a/rules/0043-o_c.part b/rules/0043-o_c.part index 4042e4c9..87cf7658 100644 --- a/rules/0043-o_c.part +++ b/rules/0043-o_c.part @@ -1,8 +1,8 @@ ! option = compat - grp_led:num = +lednum(group_lock) - grp_led:caps = +ledcaps(group_lock) - grp_led:scroll = +ledscroll(group_lock) - mod_led:compose = +ledcompose(compose) + grp_led:num = +grp_led(num) + grp_led:caps = +grp_led(caps) + grp_led:scroll = +grp_led(scroll) + mod_led:compose = +mod_led(compose) japan:kana_lock = +japan(kana_lock) - caps:shiftlock = +ledcaps(shift_lock) - grab:break_actions = +xfree86(grab_break) + caps:shiftlock = +caps(shiftlock) + grab:break_actions = +grab(break_actions) |