diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-09 00:43:29 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-09 00:43:29 -0500 |
| commit | 9a620a1419b7a20b57c93827d027d5c734831620 (patch) | |
| tree | c8c60918da3557c6f60f414067177c6fc12dbbb0 /config/hypr/scripts/keybinds_parser.py | |
| parent | e541b2b00869895734f29b5caf1c65d116ee35d0 (diff) | |
Fixed parser not detecting unbinds / rebinds
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/scripts/keybinds_parser.py
Diffstat (limited to 'config/hypr/scripts/keybinds_parser.py')
| -rwxr-xr-x | config/hypr/scripts/keybinds_parser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/hypr/scripts/keybinds_parser.py b/config/hypr/scripts/keybinds_parser.py index cae57488..d12e3854 100755 --- a/config/hypr/scripts/keybinds_parser.py +++ b/config/hypr/scripts/keybinds_parser.py @@ -86,6 +86,13 @@ def parse_files(files): if file_path == user_conf_path: unbound_user[combo] = True + # If unbind is found, we should remove the bind from our map + # so it doesn't show up in the menu. + if combo in binding_map: + del binding_map[combo] + if combo in source_map: + del source_map[combo] + except Exception as e: # Silently ignore read errors to mimic bash behavior or log to stderr sys.stderr.write(f"Error reading {file_path}: {e}\n") |
