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

Customization Hotkeys for Tiling Layouts #141

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nununoisy
Copy link
Contributor

This PR adds two new keybindings, Super+J and Super+K. These keybindings interact with the current tiling layout to perform some kind of customization. At the moment, they control two layouts:

  • Split - temporarily changes the number of windows on screen (2-5)
  • Ratio - temporarily modifies the current ratio in increments of 0.05

While the event handlers and description text reference increasing and decreasing some variable, they could be mapped to other actions in the future.

@@ -4,12 +4,14 @@ const {
BaseGrabbableLayout
} = Me.imports.tilingManager.tilingLayouts.custom.baseGrabbable;

let ratio = null;
Copy link
Contributor

@bbil bbil Dec 2, 2019

Choose a reason for hiding this comment

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

this is only going to work if RatioLayout is always used as a singleton.

Suggest saving ratio as a member variable of RatioLayout (that gets initialized to global.tilingManager.ratio in the constructor).

@nununoisy nununoisy mentioned this pull request Mar 2, 2020
Base automatically changed from master to main February 7, 2021 11:35
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.

None yet

2 participants