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

Support overriding more keys via resources #46

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

jblosser
Copy link
Contributor

@jblosser jblosser commented Aug 5, 2024

Hi. This PR makes more of the modifier keys for container and workspace movement and modification configurable via resources. So for example I can swap 'Ctrl' as the workspace 11-19 selector and 'Shift' as the move-container-to-workspace key.

I've tested this locally using i3; I don't have a sway setup but I doubt it's any different.

This also provides a fix for #3, though the "carry window to workspace" case is a bit odd because it uses $alt and AFAICT I can't access that directly from the default argument in set_from_resource, so it has to be set directly as Mod1 here.

Added:
wm.workspace.high.key for the key to reach workspaces 11-19 (default is Ctrl)
wm.move_container_to_ws_key to move containers to workspaces (default is Shift)
wm.carry_container_to_ws_key to move containers to workspaces and change to that workspace (default is Mod1)

These names aren't necessarily consistent with each other, but I tried to keep them consistent with the ones around them. Obviously they can be changed to whatever.

@kgilmer
Copy link
Member

kgilmer commented Aug 7, 2024

Nice, thanks @jblosser ! I also don't see how there would be an issue with Sway but will test it in unstable once built. @SoumyaRanjanPatnaik FYI given this modifies the sway root config.

@kgilmer kgilmer merged commit 5afdc55 into regolith-linux:main Aug 7, 2024
Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kgilmer
Copy link
Member

kgilmer commented Aug 7, 2024

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.

2 participants