rules: fix Key conditions in built-in rules

This commit is contained in:
Peter F. Patel-Schneider 2022-03-01 08:02:43 -05:00
parent ce7dcf8326
commit 94ff454ace
1 changed files with 2 additions and 2 deletions

View File

@ -872,8 +872,8 @@ built_in_rules = Rule([])
if True: # x11
built_in_rules = Rule([
{'Rule': [ # Implement problematic keys for Craft and MX Master
{'Rule': [{'Key': 'Brightness Down'}, {'KeyPress': 'XF86_MonBrightnessDown'}]},
{'Rule': [{'Key': 'Brightness Up'}, {'KeyPress': 'XF86_MonBrightnessUp'}]},
{'Rule': [{'Key': ['Brightness Down', 'pressed']}, {'KeyPress': 'XF86_MonBrightnessDown'}]},
{'Rule': [{'Key': ['Brightness Up', 'pressed']}, {'KeyPress': 'XF86_MonBrightnessUp'}]},
]},
{'Rule': [ # In firefox, crown emits keys that move up and down if not pressed, rotate through tabs otherwise
{'Process': 'firefox'},