summaryrefslogtreecommitdiffstats
path: root/hwdb/parse_hwdb.py
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-03-09 14:53:52 +0100
committerBastien Nocera <hadess@hadess.net>2017-03-09 14:53:52 +0100
commitb698b5cf8577d9538a6c87fbb582d34f97b3047b (patch)
tree100a07296b690c2faf6e8e03b8d3788c29201c34 /hwdb/parse_hwdb.py
parenthwdb: Better documentation for keyboard quirks (diff)
downloadsystemd-b698b5cf8577d9538a6c87fbb582d34f97b3047b.tar.xz
systemd-b698b5cf8577d9538a6c87fbb582d34f97b3047b.zip
hwdb: Add property for keyboards without LEDs
It is useful for desktop environments to be able to show Caps-Lock or Num-Lock status changes as an on-screen display when using a keyboard that doesn't have LEDs for this. Closes: #5559
Diffstat (limited to '')
-rwxr-xr-xhwdb/parse_hwdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdb/parse_hwdb.py b/hwdb/parse_hwdb.py
index b57e6f75aa..e2c65c4be0 100755
--- a/hwdb/parse_hwdb.py
+++ b/hwdb/parse_hwdb.py
@@ -112,6 +112,8 @@ def property_grammar():
('ID_INPUT_TOUCHPAD_INTEGRATION', Or(('internal', 'external'))),
('XKB_FIXED_LAYOUT', STRING),
('XKB_FIXED_VARIANT', STRING),
+ ('KEYBOARD_LED_NUMLOCK', Literal('0')),
+ ('KEYBOARD_LED_CAPSLOCK', Literal('0')),
('ACCEL_MOUNT_MATRIX', mount_matrix),
)
fixed_props = [Literal(name)('NAME') - Suppress('=') - val('VALUE')