8000 Customization Hotkeys for Tiling Layouts by nununoisy · Pull Request #141 · material-shell/material-shell · GitHub
[go: up one dir, main page]

Skip to content

Customization Hotkeys for Tiling Layouts#141

Open
nununoisy wants to merge 2 commits intomaterial-shell:mainfrom
nununoisy:tiling-customizing-hotkeys
Open

Customization Hotkeys for Tiling Layouts#141
nununoisy wants to merge 2 commits intomaterial-shell:mainfrom
nununoisy:tiling-customizing-hotkeys

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.

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.

2 participants

0