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
Cannot change win and alt keys with Xresources #504
Cannot change win and alt keys with Xresources #504
Comments
I'm sorry, but could you please add a little more detail to this bug report and make sure your issue isn't covered by the documentation? Otherwise I'll be forced to close it. Thanks! |
I am pretty sure this issue is not covered by the documentation.
save and press windows-shift-r to reload the configuration. I get: "You have an error in your i3 config file!" When I click on "show error" I get
|
Hi @hugorichard , looks like you've uncovered a new bug. We've expanded upon how keybindings are defined such that in more cases, users can use overrides to change keybindings, rather than a full i3 copy. However some of the defaults in the i3 file conflict if alt and super are swapped. A general fix will take some time, but for now making your
I would appreciate knowing if you apply this fix and it does or does not resolve the issue for you. |
Hi thanks for your answer. |
I'm experiencing this issue as well. To help verify the suggested workaround, my
Produces errors that look the same:
No more errors after adding the configurations.
Thank you for the workaround configuration! |
FWIW the root of this issue is: The only solution I can see is to pull all references to modifier keys directly into the keybinding expression. The downside of this change is that for those keybindings, the modifier key sequences cannot be overridden by Xresource settings and will need direct edits to the config file. However, I see this as less serious as that limitation is already the case in the sense that Mod/Alt cannot be selectively changed without changing the config file itself. I guess the question becomes, what will occur more often: users wanting to swap alt and super, or users wanting tochange the keybindings for the 5 sequences above that happen to use both alt and super? |
…limitations of i3's variable expansion capabilities. Addresses regolith-linux/regolith-desktop#504.
Given that this change will result in breaking changes for i3 config customizers, this fix will be moved to the next major version release. |
@kgilmer Have you given any thought to dynamically setting the comments above each keybinding so that they're updated for the swap? If it was part of a script ( |
A script would probably work, but would need to write into the user directory. Another approach is to provide an alternative set of i3 config partials specifically to handle |
I just tried this, and I still get an error even after the suggested modification to Xresources. Specifically, I am getting a single duplicate keybinding:
My Xresource file:
|
are you on Regolith 2 @GlenHenshaw? |
1.6. Installed with the ppa on top of Ubuntu Server 20.04 on a Raspberry Pi.
…--------------------
Glen
***@***.***
"Let us think the unthinkable, let us do the undoable, let us prepare to grapple with the ineffable itself, and see if we may not eff it after all.”
On Apr 12, 2022, at 1:49 AM, Ken Gilmer ***@***.***> wrote:
are you on Regolith 2 @GlenHenshaw?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
I'm going to need some help to solve this. I've been trying random key binding combinations for an hour now, and the error message I get back is always exactly the same. Clearly I'm missing something. |
The line associated with this error: https://github.com/regolith-linux/regolith-i3-gaps-config/blob/master/config#L124 You're overriding |
Describe the bug
A clear and concise description of what the bug is.
New installation of Regolith
Change alt and key using Xresource as described in
https://regolith-linux.org/docs/getting-started/configuration/
Get i3 config error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration file(s)
Please attach or mention any customization you've done to configuration files which might have an impact on the bug you are describing. It'll help us determine the root cause of your issue.
Installation Details
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: