A personal Omarchy shell plugin: a bar chip for the focused workspace’s Hyprland tiling layout, with a small panel to pin one of four layouts, set a compositor-wide default, or follow the default again.
Plugin id: bennethon.omalay. This is a third-party plugin, not part of basecamp/omarchy. Super+L stays Omarchy’s dwindle ↔ scrolling toggle.
- Dwindle — all windows stay visible
- Scrolling — columns can run off-screen
- Master — main pane + stack
- Monocle — one window at a time
Develop from ~/Projects/omalay. Point Omarchy at that tree (a directory symlink is enough):
mkdir -p ~/.config/omarchy/plugins
ln -sfn ~/Projects/omalay ~/.config/omarchy/plugins/bennethon.omalayDo not put extra symlinks inside the plugin folder; omarchy plugin validate rejects those.
omarchy plugin validate ~/Projects/omalay
omarchy-shell shell rescanPlugins
omarchy plugin enable bennethon.omalayThe widget lands in the bar’s right section (defaultSection: right). Move it with:
omarchy bar move bennethon.omalay --section leftAfter QML edits, omarchy-shell shell rescanPlugins or omarchy-restart-shell. A directory symlink is not followed by the shell’s plugin file watcher, so saving in ~/Projects/omalay may not hot-reload by itself. Do not start a second Quickshell process.
| Chord | Action |
|---|---|
Super + Alt + L |
Cycle this workspace: dwindle → scrolling → master → monocle → dwindle. Each step pins and applies immediately. |
Super + Alt + Shift + L |
Toggle the Omalay panel |
Super + L |
Untouched Omarchy dwindle ↔ scrolling toggle |
Super + Ctrl + L |
Untouched lock screen |
Binds live in ~/.config/hypr/bindings.lua:
o.bind("SUPER + ALT + L", "Cycle workspace layout", "~/Projects/omalay/bin/omalay-cycle")
o.bind("SUPER + ALT + SHIFT + L", "Omalay panel", "omarchy-shell shell toggle bennethon.omalay")The panel toggle is also:
omarchy-shell shell toggle bennethon.omalayWhile the panel is open: 1–4 pin a layout, d sets the default, x or Backspace clears the pin, Esc closes.
| UI action | Effect | Persistence |
|---|---|---|
Click a layout (or Super + Alt + L) |
Pin this workspace only | ~/.local/state/omarchy/workspace-layouts/<workspace-key>.lua |
| Set as default | Fallback for workspaces with no pin | ~/.config/hypr/layout-default.lua (general.layout), loaded from Hyprland config |
| Clear pin / follow default | Remove this workspace’s override | Deletes that workspace’s state file |
Workspace keys match Omarchy’s stock toggle: numeric id ("2") for normal workspaces, name (not a negative id) for special workspaces.
The pin file format is the same as omarchy-hyprland-workspace-layout-toggle:
hl.workspace_rule({ workspace = "2", layout = "master" })Omarchy already reloads every *.lua in that directory via default/hypr/workspace-layouts.lua, so Super+L, Omalay, and Hyprland restart share one source of truth.
Set as default does not rewrite looknfeel.lua. It writes a small ~/.config/hypr/layout-default.lua and, the first time only, appends:
-- bennethon.omalay:default
require("hypr.layout-default")to ~/.config/hypr/looknfeel.lua (or hyprland.lua if that is the user entrypoint). That file is created only after you use Set as default, so Hyprland does not spawn the first windows as dwindle while the shell is still starting.
omarchy plugin disable bennethon.omalay
omarchy plugin remove bennethon.omalayThen drop the two o.bind lines from ~/.config/hypr/bindings.lua. Delete ~/.config/hypr/layout-default.lua and the -- bennethon.omalay:default require if you no longer want a custom default. Per-workspace pins in ~/.local/state/omarchy/workspace-layouts/ can stay (Super+L still uses them) or be deleted individually.