Skip to content

opt: display conflicting key combination in keybinding warning - #1398

Open
shoobham84 wants to merge 1 commit into
mangowm:mainfrom
shoobham84:feat/keybind-conflict-warning
Open

shoobham84 wants to merge 1 commit into
mangowm:mainfrom
shoobham84:feat/keybind-conflict-warning

Conversation

@shoobham84

Copy link
Copy Markdown

Summary

When a keybinding conflict is detected during config loading, the warning only prints file paths and line numbers. This makes it hard to see which key combinations caused the collision.

Wire up existing mod_to_string() helper and resolve keysym name so key combination is visible in warning output.

Before and After Comparison

Before:

[WARNING] Key binding conflict in keymode default:
  File "/tmp/test_conflict.conf", line 1
  File "/tmp/test_conflict.conf", line 2

After:

[WARNING] Key binding conflict for Super + r in keymode default:
  File "/tmp/test_conflict.conf", line 1
  File "/tmp/test_conflict.conf", line 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant