Skip to content

Add omarchy-centered-workspace-toggle - #308

Open
pablohc wants to merge 1 commit into
omacom:masterfrom
pablohc:add-omarchy-centered-workspace-toggle
Open

Add omarchy-centered-workspace-toggle#308
pablohc wants to merge 1 commit into
omacom:masterfrom
pablohc:add-omarchy-centered-workspace-toggle

Conversation

@pablohc

@pablohc pablohc commented Sep 4, 2026

Copy link
Copy Markdown

What

Adds omarchy-centered-workspace-toggle: a per-workspace centered master layout toggle for Omarchy (Hyprland).

Pressing the bound key (suggested SUPER + M) on any workspace:

  1. Switches that workspace to Hyprland's master layout with the master window centered at half width (orientation = "center", mfact = 0.5), persisting the choice per workspace via the same state mechanism as the built-in omarchy-hyprland-workspace-layout-toggle (~/.local/state/omarchy/workspace-layouts/).
  2. Promotes the currently focused window into the centered "principal" slot (dwm-style swapwithmaster). Other windows extend into side columns.

Omarchy's stock SUPER + L (dwindle ↔ scrolling) keeps working; the binding brings centered master back on demand. Safe no-ops on special/empty/single-window workspaces, with a notify-send fallback when Omarchy's notifier is absent (so it degrades gracefully on plain Hyprland).

Source & metadata

Install snippet for users

-- ~/.config/hypr/bindings.lua
o.bind("SUPER + M", "Make window the centered principal", "omarchy-centered-workspace-toggle")

Happy to rename the package if the omarchy- prefix should stay reserved for first-party tools (e.g. hypr-workspace-master-toggle), or to move it to the fast ring if desired.

@Chessing234 Chessing234 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

simple script package, pinned tarball + sha256.

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