Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bind +/=/[/] in keyboard shortcuts #446

Closed
Naharie opened this issue Dec 29, 2024 · 3 comments
Closed

Can't bind +/=/[/] in keyboard shortcuts #446

Naharie opened this issue Dec 29, 2024 · 3 comments

Comments

@Naharie
Copy link

Naharie commented Dec 29, 2024

My existing setup in Plasma is to bind Meta+- to zoom out and Meta++ to zoom in. Unfortunately plasma manager doesn't allow either of those as +, =, [, and ] are always escaped. This is not correct behavior. Use the GUI to bind one of those combos and you will find that it generates what it displays (Meta++, Meta+=, Meta+[, etc.) in the config file.

Maybe it would be possible to skip escaping these for keyboard shortcuts?

@Sporif
Copy link
Contributor

Sporif commented Jan 3, 2025

Meta++ works for me. When I have this set:

plasma.shortcuts.kwin."view_zoom_in" = "Meta++";

plasma-manager produces:

[kwin]
view_zoom_in=Meta++,Meta++\tMeta+=,Zoom In

@Naharie
Copy link
Author

Naharie commented Jan 4, 2025

Okay, so I updated my flake's inputs and something must of changed, because I do see what you are saying now. Attempting to bind "Meta++" results in the correct text in kglobalshortcutssrc:

view_zoom_in=Meta++,,
view_zoom_out=Meta+-,,

System settings will show it correctly now, but the shortcuts don't function.
My dotfiles are public on github (dotfiles) if you want to take a look and see what I might be doing wrong.

@Naharie
Copy link
Author

Naharie commented Jan 4, 2025

Okay, so I updated my flake's inputs and something must of changed, because I do see what you are saying now. Attempting to bind "Meta++" results in the correct text in kglobalshortcutssrc:

view_zoom_in=Meta++,,
view_zoom_out=Meta+-,,

System settings will show it correctly now, but the shortcuts don't function.
My dotfiles are public on github (dotfiles) if you want to take a look and see what I might be doing wrong.

Update: for whatever reason if you tell kwin to reload shortcuts within the session it will load other changes but not those two bindings, but if you log out and then log in they functional correctly.

@Naharie Naharie closed this as completed Jan 4, 2025
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

No branches or pull requests

2 participants