Skip to content

Settings Reference

This reference follows current main; features newer than the latest release are marked Unreleased.

The tables below list the keys in settings.luau and their defaults. The editor definitions describe the accepted shapes. Defaults come from SettingsExport and the built-in defaults.

Return one table of settings. Each example below shows the fields for one task. To combine examples, add their fields to the same table. Omitted settings use their defaults. A list you supply, such as workspaces, is the whole saved list. For example:

return {
general = { animationsEnabled = true },
gaps = { size = 8 },
}
  • Rows in an explicit list must supply their required fields. A supplied hotkeys list can assign each action once. Omitted actions in that list are unassigned.
  • Colors have red, green, blue and alpha values between 0 and 1.
  • singleWindowFit accepts "fill", a size such as "1920x1080", and, in Niri, "container_primary_span". The Settings window calls "fill" Full Screen. It follows fullscreenUsesOuterGaps.
  • Enums accept the strings shown. An unknown key, wrong type, invalid enum or conflicting trackpad finger-count assignment rejects the edit. See Configuration for recovery.

Global switches: hotkeys, Hyper key, default layout, sleep, updates, IPC, animations, interface language, workspace back-and-forth.

Key Type Default Description
hotkeysEnabled boolean true Master switch for all global hotkeys.
systemHyperTrigger string "None" Physical trigger for Hyper: None, a key name (CapsLock, F13–F20, LeftControl/RightControl, LeftOption/RightOption, LeftShift/RightShift, LeftCommand/RightCommand; OmniWM writes these with a space, for example "Left Control" and "Caps Lock", and accepts both spellings), or MouseButton3/MouseButton4/MouseButton5.
hyperKeyModifiers string "Control+Option+Shift+Command" Modifier set Hyper expands to: +-joined names, at least two of Control/Option/Shift/Command.
defaultLayoutType string "niri" Layout used by workspaces whose own layoutType is default: niri or dwindle.
preventSleepEnabled boolean false Prevents idle display sleep while your user session is active.
updateChecksEnabled boolean true Automatic update checks.
ipcEnabled boolean false Enables the IPC server used by omniwmctl.
animationsEnabled boolean true Animates window layout changes and other OmniWM-authored motion. macOS Reduce Motion turns them off regardless of this key.
animationSpeed (optional) float 1.0 Tiling animation speed multiplier: 2.0 is twice as fast, 0.5 is half as fast. Applies to Niri focus, window/column movement and resizing, Dwindle layout changes, workspace swipe settling, and workspace switch slides. Values are clamped to 0.25–4.0; nonfinite values use 1.0. Changes apply to newly started transitions. Direct gesture tracking, inertial scrolling, Overview, and Quake terminal animations keep their own behavior.
slideWorkspaceSwitches (optional) boolean false Unreleased: Available when building from main. Workspace switches from shortcuts, the command palette and omniwmctl slide between workspaces like a workspace swipe, in the same direction as a workspace swipe, whether or not workspaceSwipeEnabled is on. Needs animationsEnabled and Screen Recording; without them, or while the destination workspace has no captured preview yet, the switch is instant. While on, OmniWM keeps previews of the neighboring workspaces captured in the background. Settings > Appearance > App & Motion.
pausePalettePasteDuringSecureInput (optional) boolean true Unreleased: Available when building from main. While macOS Secure Input is on, command palette clipboard entries don’t paste. Set to false when an app holds Secure Input in the background and you still want to paste from the palette. Keyboard modes don’t start during Secure Input either way, and macOS still pauses Hyper and left/right-specific shortcuts, and those on letter, number or symbol keys without Control or Command. Settings > Hotkeys > Controls.
showSecureInputExplanation (optional) boolean true Unreleased. Automatically opens the explanation after Secure Input has been on for 10 seconds. While Secure Input is indicated, you can also open the explanation from the OmniWM status menu. Settings > Hotkeys > Controls.
language (optional) string unset Interface language as a packaged localization code, such as "ja" or "sr-Latn". Leave it unset to follow macOS. Takes effect the next time OmniWM starts.
workspaceAutoBackAndForth (optional) boolean false When a workspace shortcut or command palette entry targets the workspace you are already on, switch to the previously active workspace instead, like i3’s workspace_auto_back_and_forth. omniwmctl workspace commands are unaffected. Settings > Workspaces > Workspace Switching.
workspaceSwitchWrapAround (optional) boolean true Set to false to stop Next and Previous Workspace commands at the ends of the current monitor’s workspace order. Applies to shortcuts, the command palette, and omniwmctl. Settings > Workspaces > Workspace Switching.

Pointer-driven focus and monitor-edge focus/move behavior.

Key Type Default Description
followsMouse boolean false Focuses a managed window when the pointer enters it, no click needed.
followsMouseOnlyFullyVisible (optional) boolean false Restricts Niri hover focus to tiled windows whose current WindowServer bounds fit inside their assigned monitor’s screen bounds and contain the pointer. If those bounds are unavailable, hover leaves focus unchanged. Also disables hover navigation at Niri screen edges. Clicks, keyboard navigation, Dwindle, and floating windows are unaffected. Requires followsMouse.
clickFocusWithoutScrolling (optional) boolean false Unreleased: Available when building from main. A left click without modifiers on a partially visible Niri window focuses it and leaves the viewport where it is. Keyboard navigation, gestures, Cmd-Tab, the Dock, and other activations still scroll the window into view. With followsMouse, hovering focuses and scrolls the window before you click. Enable followsMouseOnlyFullyVisible as well to avoid that. Has no effect when centerFocusedColumn is always. Dwindle and floating windows are unaffected.
edgeNavigationEnabled (optional) boolean true Unreleased. Shows the Niri edge preview and enables pointer navigation between columns at the screen edge. Settings > Mouse & Trackpad > Mouse & Focus > Niri Edge Navigation.
edgeNavigationInterval (optional) float 1.5 Seconds before hovering at a Niri edge moves one column, and between further moves while the pointer stays on the edge or preview. Requires edgeNavigationEnabled and followsMouse. Moving away stops navigation. Values are clamped to 0.25–2.0 and rounded to the nearest 0.25. Nonfinite values use 1.5.
raiseOnMouseFocus boolean false Also raises the window when focus-follows-mouse focuses it. A tiled window that a visible floating window overlaps from the front is focused without raising.
lockModifier string "off" Modifier that holds focus in place while pressed: off, option, leftOption, rightOption, command, leftCommand, rightCommand, control, leftControl, rightControl, shift, leftShift, rightShift.
moveMouseToFocusedWindow boolean false Moves the pointer to the window that gains focus.
followsWindowToMonitor boolean false Follows ordinary window or column transfers to another workspace, including dedicated monitor-move actions. Edge-crossing moves always follow.
crossesMonitorAtEdge boolean false Directional focus continues onto the neighboring monitor at the screen edge.
moveCrossesMonitorAtEdge boolean false Directional window move continues onto the neighboring monitor at the workspace edge and always follows the moved window.

Cursor warping across the monitor arrangement (used with routing.mode = "custom").

Key Type Default Description
margin integer 1 Edge margin in pixels used when warping the cursor between monitors.
enabled boolean true Enables cursor warping between monitors. At an edge showing a Niri parked-column fin, the pointer rests on the fin; keep pushing outward to cross.
constrainToArrangement boolean false Constrains the cursor to the configured monitor arrangement.

How monitors are arranged for cross-monitor focus, move, and warp.

Key Type Default Description
mode string "macOS" macOS follows the system display arrangement; custom selects a saved arrangement for the connected displays.
arrangements array of tables {} Saved custom routing grids, written as routing.arrangements with nested routing.arrangements.monitors rows.

Each arrangement has a required id UUID and a required monitors array. Each monitor row requires monitorName, gridColumn, and gridRow; monitorDisplayUUID and monitorDisplayId are optional identity fields. Grid coordinates are integers. Settings records display UUIDs automatically; matching uses UUID first and the existing display-ID/name fallback for displays without UUIDs.

OmniWM selects the first exact connected-set match. Otherwise, it selects the arrangement with the fewest total rows that contains every connected display; the first arrangement wins ties. It then uses only the connected displays’ grid positions. An uncovered set or an invalid selected grid follows macOS. Resolution, enumeration order, and macOS placement do not affect selection.

Editing, resetting, or finishing Monitor Setup saves exactly the connected set and retains an existing exact arrangement’s ID. An edit to an inherited grid creates a separate arrangement without changing its larger source. Connecting displays or opening Settings does not create arrangements. Keep arrangement IDs stable when editing by hand so the same arrangement is recognized after a change.

return {
routing = {
mode = "custom",
arrangements = {
{
id = "FBE84D50-689B-4B97-A820-B8E3BFD581B7",
monitors = {
{
gridColumn = 0,
gridRow = 1,
monitorDisplayUUID = "8D575171-D0DD-43BB-9FEF-356E6B7C917D",
monitorName = "Built-in Retina Display",
},
{
gridColumn = 0,
gridRow = 0,
monitorDisplayUUID = "3EFD184C-D5D3-40EF-AF27-14C4222A467B",
monitorName = "DELL U2720Q",
},
},
},
},
},
}

For no saved arrangements, use arrangements = {} inside routing. The example UUIDs above are illustrative; use the identities recorded for your displays by Settings > Displays.

Optional table that ranks displays for OmniWM’s monitor roles. Omit it to keep the default roles: Main is the display with the macOS menu bar, and Secondary and Tertiary are the next displays in arrangement order.

Key Type Default Description
ranking array of tables unset Displays in preference order, written as monitors.ranking rows. The highest-ranked connected display is Main, the next connected one is Secondary, the third is Tertiary, and unranked displays follow in the default order.

Each row requires name; displayUUID and displayId are optional identity fields that Settings records automatically. A row with a displayUUID matches only that display. A row without one falls back to the display-ID/name pair, and then to a case-insensitive name match when it identifies exactly one connected display. A row whose display is disconnected is skipped, so a docked external display can outrank the built-in display while the built-in display becomes Main again when undocked.

return {
monitors = {
ranking = {
{
displayUUID = "3EFD184C-D5D3-40EF-AF27-14C4222A467B",
name = "DELL U2720Q",
},
{
displayUUID = "8D575171-D0DD-43BB-9FEF-356E6B7C917D",
name = "Built-in Retina Display",
},
},
},
}

Workspaces whose home is Main, Secondary, or Tertiary follow this ranking, and so does the Quake terminal’s mainMonitor mode. The is-main field and selector in omniwmctl keep reporting the macOS main display.

Gaps between tiled windows and screen edges (points).

Key Type Default Description
size float 16.0 Stored inner gap between tiled windows. An enabled focus border may raise the runtime-effective gap without rewriting this value.
fullscreenUsesOuterGaps boolean false Fullscreen layout frames keep the outer gaps.
outer.left float 0.0 Outer gap at the left screen edge.
outer.right float 0.0 Outer gap at the right screen edge.
outer.top float 0.0 Outer gap measured from the physical top edge of each display. The menu bar height is subtracted first and the result is clamped at 0, so a display without a menu bar needs a smaller value than the main display for the same visual gap below the menu bar.
outer.bottom float 0.0 Outer gap at the bottom screen edge.

Per-display values come from monitorGapOverrides. An override row must match the connected display’s UUID, or both display ID and name if that display has no UUID. An unmatched row is ignored and the global values apply; the override row’s own id does not identify the display.

Options for the scrolling (Niri) layout.

Key Type Default Description
visibleContainerCount integer 2 How many containers (columns) share the viewport along the strip. When fewer containers are open, they expand proportionally to fill unused space while preserving their relative widths or heights. Manual resizing takes priority until the container count changes. This applies on both horizontal and vertical strips only while fitToVisibleContainerCount is true.
fitToVisibleContainerCount (optional) boolean false Unreleased: Available when building from main. Visible Containers in Settings shows false as Off. On either strip orientation, true expands fewer containers than visibleContainerCount to fill the display, and an automatic default span is the display divided by that count. false leaves each column at its own width in a horizontal strip or height in a vertical strip, and an automatic default span is the first of containerPrimarySpanPresets.
infiniteLoop boolean false Treats the column strip as a loop instead of a bounded row.
centerFocusedColumn string "never" When to center the focused column: never, always, onOverflow.
alwaysCenterSingleColumn boolean false Centers the column when a workspace holds only one, and centers the whole strip when all its columns fit on the display.
keepStripEndsOnScreen (optional) boolean false Unreleased: Available when building from main. Focusing or closing the first or last column leaves no empty space past the end of the strip, unless the focused column is always centered.
allowOverscroll (optional) boolean false Allows trackpad scrolling past the first or last container to leave the desktop exposed after release. Applies to both snap and continuous scrolling, including single-window workspaces. Explicit focus navigation reveals the target normally.
overscrollVisibleStripPercent (optional) integer 5 Minimum visible strip at either overscroll limit, as a percentage of the edge container’s primary span capped at the viewport span. Clamped to 1–100; used only when allowOverscroll is enabled.
singleWindowFit string "fill" Size of a lone window: fill (the “Full Screen” fit, which uses the fullscreen layout frame and honors fullscreenUsesOuterGaps), container_primary_span, or WIDTHxHEIGHT.
containerPrimarySpanPresets (optional) float array { 1/3, 1/2, 2/3 } Span fractions the span-cycling actions step through.
defaultContainerPrimarySpan (optional) float or string 0.5 Primary-axis span fraction for new containers. Leave it out for an automatic span. "app" (unreleased, available when building from main) opens a new window at its app’s width in a horizontal strip or height in a vertical strip; a window with an opening-size rule keeps its rule.
keepExistingWindowWidth (optional) boolean false Unreleased: Available when building from main. A window already open when OmniWM first tiles it keeps its width in a horizontal strip or height in a vertical strip. Settings calls this Keep Existing Window Sizes.
keepSizeOnUnstack (optional) boolean false Unreleased: Available when building from main. A window moved out of a stack into a column of its own, or gathered into a new column, takes the size of the column it came from instead of the default span.
keepSizesOnDisplayMove (optional) boolean false Unreleased: Available when building from main. A workspace moved to another display keeps its automatically sized columns as they are instead of resizing them for that display.
keepSizesOnSettingsChange (optional) boolean false Unreleased: Available when building from main. Changing Visible Containers or the default span in Settings leaves open columns as they are.
resizeStepPercent (optional) integer 5 Increment for Niri grow/shrink actions in percentage points, clamped to 1–100. Applies to container primary, window primary, and window secondary spans. Explicit CLI sizes are unaffected.
edgeGaps (optional) boolean true Keeps the inner gap between columns and the screen edges, in addition to the outer gaps. false uses the inner gap only between columns and between stacked windows. A lone window is unaffected.
shrinkToFit (optional) boolean false Unreleased: Available when building from main. Resizing a column with the keyboard (set, adjust or cycle its span) resizes the other visible columns, up to the Visible Containers count, so together they fill the working area, keeping each within its size limits. The same fit also runs on its own when the sizes behind the row change and the visible columns would extend past the working area: a window refuses the size it was given, a window opens or closes, Balance Sizes runs, or the gaps, the display or the Visible Containers count change. Each column keeps its own width, which comes back once the row fits without it. When the minimums can’t all fit, whole columns move out of view. Moving focus, mouse resizing and rows with a full-span column are left alone.
moveWindowStacksIntoColumn (optional) boolean true Moving a lone window left or right stacks it into the adjacent column. false swaps its column with the adjacent one instead, unless the adjacent column is tabbed: then the window joins its tabs. A window that shares a column still moves out into its own column.
edgePeekPercent (optional) float 0.0 Peripheral Vision: keeps a strip of the next column showing at each screen edge that has more columns beyond it, as a percentage of the display’s width for horizontal strips or height for vertical strips, clamped to 0–10. 0 shows none. Columns are laid out no larger along the strip than the display minus these strips, unless a window’s minimum size or the size it is known to settle at needs more; the strip is then smaller or absent. An edge shared with another display shows none. A display can set its own value with edgePeekPercent in its monitor Niri settings.

The resize increment defaults to 5% instead of the previous fixed 10%.

Options for the Dwindle (BSP) layout.

Key Type Default Description
smartSplit boolean false Automatically chooses the split direction from the active window’s center relative to the target tile’s center and aspect ratio.
defaultSplitRatio float 1.0 1.0 = equal split, <1.0 = first window smaller, >1.0 = first window larger.
splitWidthMultiplier float 1.0 Biases when vertical vs. horizontal splits are preferred.
singleWindowFit string "fill" Size of a lone window: fill (the “Full Screen” fit, which uses the fullscreen layout frame and honors fullscreenUsesOuterGaps) or WIDTHxHEIGHT (no span mode in Dwindle).
useGlobalGaps boolean true Uses the gaps values; when false, the inner gap comes from a per-monitor innerGap override (falling back to gaps.size), clamped to the same 0–64 range as gaps.size.
moveToRootStable boolean true Keeps a window on the same screen side when moving it to the root.

Border drawn around the focused window.

Key Type Default Description
enabled boolean true Draws the focused-window border.
width float 5.0 Exterior border width in points; configured values are clamped to 1–12 points when applied. Managed layout frames use its physical-pixel ceiling as the minimum runtime inner and outer clearance while borders are enabled; stored gap values are unchanged.
color color table red ≈ 0.0846, green 1.0, blue ≈ 0.9793, alpha 1.0 Border color (default is a cyan accent) used in light appearance.
darkColor optional color table absent Border color used when macOS is in dark appearance. Falls back to color when absent. The glow also inherits it unless glow.color or glow.darkColor is set.
gradient optional table absent Enables a two-color linear gradient border when enabled = true.
gradient.enabled boolean false Uses the gradient instead of the solid border color.
gradient.direction string "topLeftToBottomRight" Either topLeftToBottomRight or topRightToBottomLeft, in the border surface’s local coordinates.
gradient.start / gradient.end color tables — Complete endpoint colors. A present gradient table must include both colors.
gradient.dark optional table absent Dark-appearance endpoint colors.
gradient.dark.start / gradient.dark.end color tables — Endpoint colors used in dark appearance. Each stop falls back to the matching gradient.start / gradient.end value when absent.
glow optional table absent Adds a visual-only glow around the border. It never changes layout gaps or resize hit-testing.
glow.enabled boolean false Draws the glow before the border.
glow.radius float 8.0 Glow radius in points, accepted from 0 through 32. The overlay surface expands to contain it.
glow.opacity float 0.6 Glow opacity from 0 through 1.
glow.color optional color table absent Overrides the glow color in light appearance. When absent, the glow inherits the border’s solid color or gradient endpoints.
glow.darkColor optional color table absent Glow color used in dark appearance. Falls back to glow.color, then to the border colors.

Gradient and glow are composable. A missing table preserves solid rendering. Non-finite or structurally invalid values preserve the previous valid appearance; finite gradient color components are clamped to 0...1, while glow radius and opacity must remain within their documented ranges. Glow reuses the border’s solid color or gradient endpoints unless glow.color or glow.darkColor overrides it, so a gradient border produces a spatially matching gradient glow by default.

Border and gradient colors resolve per macOS appearance: dark values apply when macOS uses the dark appearance, and update live as the appearance switches — no restart needed. Unset dark values keep the base colors, so existing configs render exactly as before. In Settings, inherited colors are labeled explicitly; Customize creates an override and Reset restores inheritance. Editing one dark gradient endpoint leaves the other inherited until customized. The glow inherits the resolved border color or gradient endpoints, so it adapts with them.

Overview visibility, zoom, input and colors.

Key Type Default Description
enabled (optional) boolean true Enables Overview. When off, its shortcuts, mouse button, trackpad gesture, and direct commands cannot open it; saved input assignments remain available when re-enabled.
zoom float 1.0 Overview zoom factor, clamped to 0.5–1.5. Zoom changes made in Overview are saved when it closes.
backdrop color table 0.05, 0.05, 0.08, 0.0 Backdrop behind the zoomed-out workspaces; transparent by default.
windowBorders.normal color table 0.3, 0.3, 0.35, 0.5 Border for windows at rest.
windowBorders.hovered color table 0.4, 0.6, 1.0, 1.0 Border for the hovered window.
windowBorders.selected color table 0.3, 0.8, 0.4, 1.0 Border for the selected window when matchFocusBorder is false.
matchFocusBorder (optional) boolean true Uses the focused-window border’s appearance for the selected Overview card. Turn off to use windowBorders.selected.
invertScrollDirection (optional) boolean false Reverses mouse and trackpad scrolling relative to the system Natural Scrolling setting.
mouseScrollSpeed (optional) float 1.0 Mouse-wheel speed multiplier, clamped to 0.05–2.0. Trackpad speed is unaffected.
mouseButton (optional) integer unset Mouse button that toggles Overview: 2 (middle button), 3, 4, or 5. Omit to leave unassigned. Cannot share a button with a hotkey or systemHyperTrigger.

The window switcher. The table is optional; when absent, every key takes its default.

Key Type Default Description
enabled boolean false Takes over Command-Tab and Option-Tab, as assigned below, through OmniWM’s input event tap.
commandTab string "activeWorkspace" Scope Command-Tab opens: activeWorkspace, visibleWorkspaces (Unreleased: available when building from main; the workspace shown on each monitor), allWorkspaces, remembered (the last scope chosen with S), or disabled (leaves the macOS app switcher).
optionTab string "allWorkspaces" Scope Option-Tab opens. Same values as commandTab.
scope string "allWorkspaces" The remembered scope, saved when you press S or click the scope button: allWorkspaces, visibleWorkspaces (Unreleased), or activeWorkspace.
showFooter boolean true Shows the scope button and window count.
order string "omniLayout" Window order: omniLayout follows the workspace layout; lastUsed sorts by focus recency across the selected scope, followed by windows without focus history in layout order.

Keyboard modes. The table is optional; when absent, every key takes its default.

Key Type Default Description
pauseTimeoutSeconds (optional) number unset Seconds after which a shortcut pause ends by itself. Unset or 0 keeps the pause until you toggle it again. Settings > Keyboard Shortcuts > Keyboard Modes > Pause Timeout.

The per-monitor workspace bar. Per-monitor exceptions live in monitorBarOverrides. A shell profile or theme can override most of these keys in its own workspaceBar.

Key Type Default Description
enabled boolean true Shows the workspace bar. When off, all monitors’ bars are off, including monitors with enabled = true overrides; those preferences return when the global bar is re-enabled.
hoverPreviewsEnabled (optional) boolean true Shows window thumbnail previews when hovering over bar icons. Turning it off releases the preview capture and cache while leaving the bar active.
notificationBadges (optional) string "off" App-wide Dock badges on existing icons: off, dot, or text. Global setting.
notificationBadgeRefreshIntervalSeconds (optional) float 5.0 Badge refresh interval, rounded to whole seconds and clamped to 1–60.
showLabels boolean true Shows workspace names next to their numbers.
showFloatingWindows boolean false Includes floating windows’ icons in workspace pills.
windowLevel string "popup" Bar window level: normal, floating, status, popup, screensaver.
position string "overlappingMenuBar" overlappingMenuBar, belowMenuBar, bottom, left, or right. Bottom and side placements follow the usable display edge, avoiding a visible Dock.
notchMode string "moveBelowMenuBar" Notch handling: off, moveBelowMenuBar, rightOfNotch, splitActiveLeft, splitActiveRight, or fillLeftOfNotch. rightOfNotch centers the bar without a notch, or places it 8 points to the right of the notch; offsets still apply. fillLeftOfNotch fills the menu-bar area left of the notch and covers app menus; without a notch it uses the left half of the menu bar. At Overlapping Menu Bar, this mode overrides xOffset, yOffset, and height: the bar uses the menu-bar height. Below Menu Bar turns it off without changing the saved setting. With reserveLayoutSpace on, the bar visible, and autoHide off, it reserves any space the bar occupies in the usable frame. For a notched display or visible menu bar (not automatically hidden in System Settings), macOS already reserves the top of the screen and shrinks the usable frame accordingly, so this is only non-zero for a notch-less display with a hidden menu bar. Bottom/left/right ignore notch modes without changing the saved preference.
notchActiveZoneWidth float 180.0 Width in points of the active zone around the notch.
fullWidth (optional) boolean false Spans the whole screen edge, with the shell’s leading, center and trailing widgets at its start, middle and end (top, middle and bottom on a side bar). notchMode, notchActiveZoneWidth and the offset along the bar don’t apply. With position = "belowMenuBar", it leaves macOS’s menu-bar auto-hide preference unchanged. At any other position, an enabled full-width bar sets macOS’s Automatically hide and show the menu bar to Always on every display, including while automatic hiding or native fullscreen hides the bar. Overlapping the menu bar also places the bar at the screen top, above native menus. Your previous choice returns when the last full-width bar requesting automatic hiding moves below the menu bar, is disabled or hidden with Toggle Workspace Bar, or OmniWM quits normally. A crash can leave automatic hiding active; relaunch OmniWM and move its full-width bars below the menu bar, disable them, or quit normally to restore the saved preference.
fullWidthNotchMode (optional) string "rightOfNotch" Where a full-width bar’s center widgets go on a display with a notch: off (centered under the notch), moveBelowMenuBar (the whole bar moves below the menu bar), rightOfNotch, leftOfNotch, or splitAroundNotch (the first half left of the notch, the rest right of it). Bottom/left/right ignore it.
systemStatsButton boolean false Adds a system stats button to the bar. The button needs the shell’s system-stats widget in one of the bar’s groups.
deduplicateAppIcons boolean false Collapses repeated icons of the same app within a pill.
hideEmptyWorkspaces boolean false Hides inactive empty workspaces in the bar and Overview; next/previous navigation skips them.
excludedBundleIDs string array {} Bundle IDs whose windows never contribute icons to the bar.
iconOverrides table {} Bundle ID → custom icon source (see below).
reserveLayoutSpace boolean false Reserves space at the selected edge for tiled and layout-fullscreen windows. Overlapping placement reserves only how far the bar’s screen-constrained bottom edge extends below the top of the usable frame, including yOffset (zero when it fits within the menu-bar area). Other positions reserve the configured bar thickness regardless of offsets.
autoHide (optional) boolean false Reveal when the pointer touches the bar’s edge span. Hide after the pointer moves inward past the bar and interactions end; moving along the edge keeps it visible. Never reserves layout space. Supports per-display overrides and combines with modifier-hold reveal.
autoHideRevealDelayMilliseconds (optional) float 0.0 How long the pointer must stay at the bar’s edge before an auto-hidden bar appears, clamped to 0–1000. Leaving the edge sooner cancels the reveal. Global setting.
autoHideHideDelayMilliseconds (optional) float 0.0 How long an auto-hidden bar stays after the pointer moves inward past it and interactions end, clamped to 0–1000. Returning to the bar sooner cancels the hide. Global setting.
revealModifier string "off" Reveal the bar by holding a modifier. This reveals only bars whose resolved autoHide is true; bars with autoHide = false stay visible and honor reserveLayoutSpace. Existing modifier-only setups must enable autoHide to keep hiding, which also enables hover reveal. Auto-hidden bars never reserve layout space. Values: off, option, control, command, shift, controlOption, optionCommand, optionShift, controlCommand, controlShift, commandShift, controlOptionCommand, controlOptionShift, optionCommandShift, controlCommandShift, controlOptionCommandShift.
revealHoldMilliseconds float 200.0 How long the modifier must be held before the bar reveals.
hideInNativeFullscreen boolean false Hides the bar while a native-fullscreen space is active. Effective fillLeftOfNotch at a top position always hides there, regardless of this setting.
height float 24.0 Bar thickness in points: height for horizontal bars, width for left/right bars. Side bars scroll when content exceeds the usable display height.
backgroundOpacity float 0.1 Bar background opacity (0.0–1.0).
inactiveIconOpacity (optional) float unset Opacity of unfocused app icons; finite values clamp to 0.0–1.0. Omit to use the built-in appearance.
transparentBackground (optional) boolean false Hides the bar material, tint, and border while keeping its contents interactive, unless solidBlackBackground is enabled.
solidBlackBackground (optional) boolean false Uses a solid black bar background. Takes precedence over transparentBackground.
showItemBackgrounds (optional) boolean true Shows backgrounds behind workspace groups, floating windows, scratchpads, and stats.
showAccentHighlights (optional) boolean true Shows the focused-workspace outline and focused-icon glow.
xOffset float 0.0 Horizontal offset in points.
yOffset float 0.0 Vertical offset in points; positive values move the bar up, negative values move it down.
accentColor (optional) color table unset Accent color override; unset uses the built-in accent.
textColor (optional) color table unset Text color override; unset uses the built-in text color.

iconOverrides maps a bundle ID to either an image file path — absolute, ~/-relative, or relative to the omniwm config directory — or bundle-resource:NAME for an image resource inside that app’s own bundle:

return {
workspaceBar = {
iconOverrides = {
["com.apple.Safari"] = "~/Pictures/safari-alt.png",
["com.mitchellh.ghostty"] = "bundle-resource:AppIcon",
},
},
}

The Dynamic Island master switch. The table is optional; when absent, the island is disabled.

Key Type Default Description
enabled boolean false Shows the active shell profile’s Dynamic Island independently of the Workspace Bar. Selecting a profile does not turn it on.

The island’s root, placement and component configuration belong to the selected profile in shell.luau. See Islands and components.

Mouse and trackpad gestures.

The seven optional overviewGesture… and window… keys below configure Overview swipes and trackpad window move/resize.

Key Type Default Description
scrollEnabled boolean true Trackpad column scrolling (fingerCount) and modifier + mouse scroll wheel scrolling along the Niri primary axis; false turns off both.
scrollSensitivity float 5.0 Trackpad scroll gesture sensitivity.
mouseWheelSensitivity (optional) float 1.0 Smooth mouse-wheel navigation multiplier, clamped to 0.1–10.0. Higher values require less wheel movement to switch columns. Standard discrete wheel steps still move one column per notch. Applies only while the mouse scroll modifier is held. Normal app scrolling is unchanged.
scrollModifierKey string "optionShift" Modifier for wheel scrolling: optionShift, controlShift, commandShift, controlOptionShift, optionCommandShift, controlCommandShift, or controlOptionCommandShift. The System Hyper Trigger does not add modifiers to wheel events.
fingerCount integer 3 Trackpad column-scroll finger count: 3 or 4.
invertDirection boolean true Inverts trackpad gesture direction.
trackpadScrollStyle string "snap" snap (snap to columns) or momentum.
workspaceSwipeEnabled boolean false Trackpad swipe switches to the next/previous workspace.
workspaceSwipeFingerCount integer 3 Workspace-swipe finger count: 2, 3, or 4.
workspaceSwipeAxis string "vertical" Workspace-swipe axis: horizontal or vertical. Workspace switch slides from shortcuts go the same way as workspace swipes.
workspaceSwipeEdgeBehavior (optional) string "cycle" What a workspace swipe does past the first or last workspace: cycle wraps around, none ignores the swipe, and onePast moves from the last occupied workspace to an empty one, creating it if needed, while ignoring swipes past an empty last workspace or before the first. Applies to trackpad swipes. See workspaceSwitchWrapAround for Next and Previous Workspace commands.
overviewGestureEnabled (optional) boolean false Enable the trackpad gesture that opens Overview with an upward swipe and closes it with a downward swipe.
overviewGestureFingerCount (optional) integer 4 Overview gesture finger count: 3 or 4.
windowMoveEnabled (optional) boolean false Move the tiled window under the pointer without clicking. Other windows make room as you drag. Lift to settle.
windowMoveFingerCount (optional) integer 4 Window-move finger count: 2, 3, or 4.
windowResizeEnabled (optional) boolean false Drag without clicking to resize the tiled window under the cursor in either layout.
windowResizeFingerCount (optional) integer 3 Window-resize finger count: 2, 3, or 4.
windowMoveSensitivity (optional) float 2.0 Move speed, clamped to 0.1…5.0. Non-finite values use 2.0.
windowGestureSensitivity (optional) float 1.0 Resize speed, clamped to 0.1…5.0. Non-finite values use 1.0.
dwindleGroupDragAcrossDisplays (optional) string "group" What a title-bar drag of a Dwindle tab group moves onto another display: group moves the whole group, which becomes one tabbed column in Niri; window moves only the dragged window. The same choice decides whether a swap onto a Dwindle group exchanges the whole group or only the window under the pointer.

Window move and resize gestures use all directions, so their finger counts must differ from every other enabled gesture. Configuration loading rejects overlaps with each other, column scrolling, workspace switching, or Overview. In Settings, Set Up… previews the conflicting assignments and lets you choose which gestures to turn off before applying the change. When editing settings.luau, disable or reassign conflicting gestures in the same edit. Moving stays on the starting monitor; resizing can continue beyond its bounds. Lift all fingers to finish, and turn off matching macOS gestures under System Settings → Trackpad → More Gestures. These gestures are inactive while Overview is open and do not use invertDirection.

Overview follows your fingers like Mission Control. Swipe up with the configured finger count and the thumbnails fly out as you move; release past the halfway point, or flick upward, to finish opening, and release earlier to cancel without disturbing the app you were in. Swipe down while Overview is open to close it the same way. Closing matches Escape: it activates the highlighted window, or restores the previously active app when there is no selection. Touching the trackpad while Overview is animating catches it in place. With animationsEnabled off or macOS Reduce Motion on, the swipe triggers immediately after a short travel instead of tracking. Direction is independent of invertDirection. Lift all fingers between gestures. Configuration validation rejects enabled gestures that share the same fingers and upward movement; the Settings Set Up… flow helps resolve those conflicts. Horizontal swipes may share fingers with Overview. Validation accounts for connected monitors’ column orientations and workspace swipes running perpendicular to column scrolling when their finger counts match. Without column scrolling, workspace swipes use their configured axis. If a display change creates an overlap, ambiguous upward swipes are ignored until the assignments are corrected. Disable the matching macOS Mission Control gesture to avoid interception.

Extra readouts beside the menu bar icon.

Key Type Default Description
showWorkspaceName boolean false Shows the active workspace beside the menu bar icon.
showLayout boolean false Unreleased — available when building from main. Shows the active workspace’s resolved Niri or Dwindle layout, independently of showWorkspaceName. The OmniWM button on OmniShell bars shows the same layout glyph beside its logo, using the layout of the workspace active on that bar’s display.
showAppNames boolean false Also shows the focused app’s name.
useWorkspaceId boolean false Shows the workspace number instead of its name.
showIcon boolean true Shows the OmniWM icon beside the workspace or layout. When off, state icons still appear for diagnostics, Secure Input, and keyboard modes. Has no effect while both showWorkspaceName and showLayout are off.

If workspace information is unavailable, the item falls back to the OmniWM icon; state icons retain precedence.

Contents of the OmniWM status menu panel (the dropdown on OmniWM’s menu bar item). All keys are optional.

Key Type Default Description
showControls boolean true Master switch for the CONTROLS grid and its help card.
showControlHelp boolean true Shows the description card under the controls grid. Has no effect while showControls is off.
showMenuItems boolean true Master switch for OmniWM’s own rows: Settings, App Rules, Open Shell Folder, Check for Updates…, Advanced, Diagnostics, Help & Links, Omni Sponsors. Quit OmniWM always stays.
hiddenControls string array {} Control tiles to hide individually: bordersEnabled, workspaceBarEnabled, preventSleepEnabled, focusFollowsMouse, focusCrossesMonitorAtEdge, moveMouseToFocusedWindow, focusFollowsWindowToMonitor, moveCrossesMonitorAtEdge, mouseWarpEnabled, hiddenBarEnabled.
hiddenMenuItems string array {} OmniWM rows to hide individually: hiddenIcons, settings, appRules, openShellFolder, checkForUpdates, advanced, diagnostics, helpLinks, sponsors.

The master switches and the per-item arrays are independent: turning a master off hides the group without changing the individual choices, so turning it back on restores exactly the previous selection. Unknown ids are ignored.

Menu-bar icon concealment (requires macOS 27+ and Full Disk Access).

Key Type Default Description
enabled boolean true Enables the Hidden Bar feature while the workspace bar is on.
hiddenBundleIDs string array {} Bundle IDs of menu-bar apps whose icons are concealed.
rehideIntervalSeconds float 5.0 Seconds before revealed icons re-hide automatically.

A shell profile can override enabled and rehideIntervalSeconds in its own hiddenBar.

Clipboard history limits. History content itself is stored in the state directory, not in the config file.

Key Type Default Description
historyEnabled boolean false Enables clipboard history capture.
maxItems integer 200 Maximum number of unpinned history entries.
maxItemBytes integer 8388608 Maximum size of a single entry (8 MiB).
maxTotalBytes integer 67108864 Maximum total history size, including pins (64 MiB).
ignoredTypes (optional) string array {} Exact pasteboard type identifiers that exclude a copy from history.

The table and all of its keys are optional; omitted keys take the defaults below. Configure these values in Settings > Launcher. Execution Defaults groups the shell and terminal used by saved entries and CLI tools. Extra app/CLI folders and the custom shell executable are under Discovery and Advanced Options. Saved entries are stored in launcher.entries and edited through its shared Add/Edit form.

Key Type Default Description
appFolders string array {} Extra app folders, scanned alongside standard app folders and active Nix profiles.
cliFolders string array {} Extra executable folders, searched after the selected shell’s PATH and standard Homebrew/Nix bin folders.
shell string "system" system, nushell, fish, zsh, or bash.
shellExecutable string "" Optional explicit executable path for the selected shell.
terminal string "terminal" Default terminal: builtIn, terminal, ghostty, iterm, or kitty.
entries table array {} Named applications, commands, scripts, and saved CLI launches.

Commands and scripts can override the default shell and terminal, including Background execution. Use Refresh Launcher after changing shell startup configuration.

Each launcher.entries table describes one saved entry. All fields are optional when decoding, but running a command requires nonblank command text, and running an application, script or executable requires a suitable path. Give entries a name so you can recognize them in Launcher.

Key Type Default Description
id UUID string generated Stable entry identity. Keep an existing ID when editing and use a different ID for each entry.
name string "" Display name.
kind string "command" application, command, script, or executable.
path string "" App bundle, script or executable path for the corresponding kind; use an absolute path or ~/….
command string "" Command text, interpreted using the selected shell’s syntax for kind = "command".
arguments string array {} Arguments for scripts and executables, each passed separately. For commands, put arguments in command using the shell’s syntax.
keywords string "" Additional searchable text.
workingDirectory string "" Working folder for commands, scripts and executables. Empty uses your home folder; ~ expands.
shell string "defaultShell" Inherit the configured shell, or choose system, nushell, fish, zsh, or bash.
shellExecutable string "" Explicit shell executable; when no entry override is supplied, the configured default applies. A supplied executable must match a supported shell.
interpreter string "" Interpreter executable for a script or executable entry. Empty launches the file directly, requiring execute permission and a valid shebang for a script.
terminal string "defaultTerminal" Inherit the configured terminal, or choose builtIn, terminal, ghostty, iterm, kitty, or background.

Merge this fragment into your existing settings and replace the example paths. If launcher already has an entries value, replace it with the array-of-table entries rather than declaring both forms:

return {
launcher = {
shell = "zsh",
terminal = "terminal",
entries = {
{
id = "9B839481-B222-4A1F-B74E-B86C63A2FD19",
name = "Project status",
kind = "command",
command = "git status --short",
workingDirectory = "~/Projects/example",
keywords = "git status",
},
{
id = "DB1789D1-7C71-461E-A65B-719E789D4C2E",
name = "Weekly report",
kind = "script",
path = "~/Scripts/report.py",
interpreter = "/usr/bin/python3",
arguments = { "--title", "Weekly report" },
terminal = "background",
},
},
},
}

Unreleased — available when building from main. The command palette. The table and its keys are optional; when absent, every key takes its default. Configure these values in Settings > Command Palette.

Key Type Default Description
unifiedSearch boolean false Open Command Palette shows unified search instead of the last-used mode. Each mode’s own Command Palette shortcut still opens just that mode.
openExpanded boolean false The palette opens with its results showing in every mode and in unified search, instead of only the search field. Unified search without Windows among its searched modes still opens collapsed until you type. Launcher and Files already open with their results showing. Settings > Command Palette > Show Results on Open.
searchedModes string array { "windows", "applications", "commands", "files" } Palette modes unified search covers, in the order their groups appear: windows, menu, clipboard, commands, applications (Launcher), files. Unknown and repeated names are ignored.

What unified search learns from your picks is stored in the state directory, not in the config file.

The drop-down (Quake) terminal. enabled and provider apply to every provider; the position, size, animation, auto-hide and appearance keys below configure Ghostty. Kitty and foot use their own configuration and the optional Kitty or foot overrides.

Key Type Default Description
enabled boolean true Enables the Quake terminal.
position string "center" Terminal position: top, bottom, left, right, center. Edge positions slide in; center fades in place.
widthPercent float 50.0 Width as a percentage of the monitor’s available screen area.
heightPercent float 50.0 Height as a percentage of the monitor’s available screen area.
animationDuration float 0.2 Show/hide animation duration in seconds, for Ghostty and foot.
autoHide boolean false Hides the terminal when it loses focus.
opacity (optional) float 1.0 Terminal background opacity (0.0–1.0).
backgroundEffect string "standardBlur" Background material: standardBlur, glassRegular, glassClear.
backgroundBlurRadius (optional) integer 0 Background blur radius; 0 disables the extra blur.
monitorMode (optional) string "focusedWindow" Which monitor it appears on: mouseCursor, focusedWindow, mainMonitor.
provider (optional) string "ghostty" Terminal that provides the Quake terminal: ghostty (embedded), kitty (Kitty’s quick-access terminal, configured in Kitty’s quick-access-terminal.conf) or foot (foot for macOS 1.28.0-macos.8 or newer, configured in foot.ini).

Optional overrides for OmniWM’s Kitty Quake panel. When a new Kitty quick-access process starts, omitted keys use quick-access-terminal.conf. Removing an override keeps its last applied value in the running process; Kitty’s configured value takes effect when a new quick-access process starts. Hiding and showing the panel reuses the current process. Ghostty’s values above are not used for Kitty.

Key Type Default Description
autoHide (optional) boolean Kitty config Hides the Kitty panel when it loses focus.
opacity (optional) float Kitty config Kitty background opacity (0.0–1.0). Turning on Override Kitty Opacity in Settings initializes the override to 0.85.

Opacity changes apply live to the running Kitty panel. If Kitty created the panel without transparency support, OmniWM reports that limitation in Settings. Such a panel may need to be closed and reopened once; shell sessions are never restarted automatically.

Optional. When present, OmniWM positions and sizes the Kitty panel below the OmniShell bar; all three keys are required. The defaults below are the initial values when Override Kitty Placement is enabled in Settings. Placement changes apply the next time the panel is shown.

Key Type Default Description
position string "top" Panel position: top, bottom, left, right, center.
widthPercent float 100.0 Width as a percentage of the monitor’s available screen area (10–100).
heightPercent float 50.0 Height as a percentage of the monitor’s available screen area (10–100).

Optional overrides for OmniWM’s foot Quake panel, sent each time OmniWM shows or hides it; changes apply the next time it is shown. Omitted optional keys use foot.ini as loaded when OmniWM started its dedicated foot server. OmniWM always sends dim, the animationDuration above (0 while global animations are disabled), and the panel’s area: the visible screen area of the monitor under the pointer, below the OmniShell top bar. Ghostty’s and Kitty’s values above are not used for foot.

Key Type Default Description
autoHide (optional) boolean foot config Hides the foot panel when it loses focus.
opacity (optional) float foot config foot background opacity (0.0–1.0). Turning on Override foot Opacity in Settings initializes the override to 0.85.
dim (optional) float 0.0 How much the rest of the screen darkens while the panel has focus (0.0–1.0). Always sent, so foot’s own 0.6 default does not apply.

Optional. When present, OmniWM sends the position and an explicit width and height; all three keys are required. The defaults below are the initial values when Override foot Placement is enabled in Settings.

Key Type Default Description
position string "top" Panel position: top, bottom, left, right, center.
widthPercent float 100.0 Width as a percentage of the panel’s area (10–100).
heightPercent float 50.0 Height as a percentage of the panel’s area (10–100).

App theming. Every table is optional; when absent, nothing is themed.

Key Type Default Description
terminalColors string "palette" How terminal colors 1 to 6 and 9 to 14 are made: palette follows an accent-only palette such as the wallpaper’s (a theme with its own hues keeps them), standard keeps standard hues tinted toward the accent. See terminal colors.
ghostty.enabled boolean false Writes omniwm-light and omniwm-dark to ghostty/themes/ in your config folder and reloads Ghostty when the palette changes.
kitty.enabled boolean false Writes kitty’s light-theme.auto.conf and dark-theme.auto.conf and reloads kitty with SIGUSR1.
neovim.enabled boolean false Writes the omniwm.lua base16 module, with light and dark palettes chosen by Neovim’s background, to nvim/lua/ in your config folder, plus nvim/colors/omniwm.lua, and reloads running Neovim with SIGUSR1. See Neovim.

An array of tables, one per custom template.

Key Type Default Description
id string generated Identifies the template’s status and state.
name string "" Shown in Settings.
enabled boolean false Renders the template.
template string "" Path of the template file; ~/ is your home folder.
darkTemplate (optional) string unset Template used in dark mode instead of template.
output string "" File to write, inside ~/.config (or $XDG_CONFIG_HOME) or ~/Library/Application Support.
reload string "none" After writing the template output, use "ghostty" or "kitty" to reload that app, or "none" to skip reloading.

Optional labels for the ten scratchpad slots. A label replaces the slot number in the workspace bar and in omniwmctl output.

Key Type Default Description
labels table {} Slot number (1–10) → label string.
return {
scratchpads = {
labels = {
["1"] = "term",
["2"] = "notes",
},
},
}

Appearance of OmniWM’s own UI.

Key Type Default Description
tabRailAppIcons (optional) boolean false Replaces compact tab markers with app icons in Niri and Dwindle. Each tab group reserves a 28-point rail instead of 10 points; crowded rails scroll vertically.

The Show app icons in tab rails toggle in Settings → Appearance → App & Motion controls the same option. Changes apply live without restarting.

return {
appearance = {
tabRailAppIcons = true,
},
}

Array of tables — one entry per assignable action, each with an id (the action identifier) and a binding:

return {
hotkeys = {
{
binding = "Option+1",
id = "switchWorkspace.0",
},
{
binding = "Unassigned",
id = "toggleScratchpad.1",
},
},
}
  • binding is a human-readable chord: +-joined modifiers (Control, Option, Shift, Command, or the Hyper shorthand for the full hyperKeyModifiers set) followed by a key name — or "Unassigned". A Left /Right prefix pins a modifier to one side (e.g. "Left Option+H"). A binding can instead be an extra mouse button, MouseButton2–MouseButton31, alone or after modifiers without side prefixes (e.g. "Option+MouseButton3"); a button used by systemHyperTrigger or Overview cannot also be a hotkey.
  • The array is validated strictly: each action may appear only once, and an action that is left out is unassigned. Workspace 10+ action IDs are optional and appear while those workspaces exist. An unknown, unassignable, or duplicate action id rejects the whole file, so rebind by editing binding values in place.
  • The numeric suffix is zero-based for switchWorkspace.N, moveToWorkspace.N, focusColumn.N, and moveColumnToWorkspace.N — switchWorkspace.0 is Switch to Workspace 1 (Option + 1 by default) — and one-based for switchWorkspaceSlot.N, moveToWorkspaceSlot.N, focusWindowInColumn.N, moveColumnToIndex.N, toggleScratchpad.N, and assignFocusedWindowToScratchpad.N.
  • toggleShellWidget.<name> toggles the shell drawer, widget popout or island root named <name>. Settings lists one for every drawer, every widget with a popout, and the island’s root widget when it has a trigger hook; a bound one stays while its drawer or widget is missing.
  • modeKey (optional) is the key that runs the action inside Prefix or Window mode: a key name, optionally with Shift (for example "H" or "Shift+H"), never Escape. It is separate from binding, so an action can have both, either, or neither. Two actions with the same mode key, a mode key that is also a shortcut, or a mode key with other modifiers are reported and ignored without rejecting the file.
  • openCommandPalette.<mode> opens the command palette in windows, menu, clipboard, commands, applications, or files mode, switches to that mode if the palette is open in another one, and closes it if it is already open in that mode. These actions are unassigned by default.

The default bindings are listed in the keyboard shortcuts guide; assignable actions appear in Settings > Keyboard Shortcuts.

Array of workspace definitions.

Key Type Description
id string (UUID) Stable identity; keep it unchanged when editing.
name string Workspace name; numeric names define the ordering and number-key targets.
displayName (optional) string Label shown in the bar instead of name (emoji welcome).
monitorAssignment table type = main, secondary, tertiary, or specificDisplay. For specificDisplay, the output sub-table contains a required name (string), optional displayUUID (string), and optional displayId (integer). The role types resolve through the monitors ranking.
layoutType string default (follow general.defaultLayoutType), niri, or dwindle.

For specificDisplay, displayUUID takes precedence when present. Without it, displayId and name must match a monitor that has no display UUID. A name alone cannot identify the target monitor.

Default: nine workspaces named 1–9, all Niri — 1–5 and 8–9 on the main monitor, 6 (shown as ❤️) and 7 (shown as 🚀) on the secondary, matching the default Option + 1–9 bindings.

return {
workspaces = {
{
displayName = "❤️",
id = "5953F2BF-A378-4266-91B2-287174C4FA4D",
layoutType = "niri",
name = "6",
monitorAssignment = {
type = "secondary",
},
},
},
}

Array of per-app window rules, editable in the App Rules window. Matchers select windows; the remaining fields say what to do with them.

Key Type Description
id (optional) string (UUID) Stable rule identity; generated if omitted. Keep an existing ID unchanged when editing.
bundleId string App bundle ID to match (may be empty when an advanced matcher is used).
appNameSubstring (optional) string Matches on the app name.
titleSubstring (optional) string Matches on the window title.
titleRegex (optional) string Regex match on the window title; when both title matchers are set, the regex wins.
axRole (optional) string Matches the accessibility role.
axSubrole (optional) string Matches the accessibility subrole.
layout (optional) string auto (default), tile, or float.
assignToWorkspace (optional) string Workspace name the window is routed to.
assignToWorkspaceForAllWindows (optional) boolean Unreleased: available when building from main. Apply the rule’s workspace assignment to every new matching window. Defaults to false and requires assignToWorkspace.
initialContainerPrimarySpan (optional) float Initial Niri span for the window’s container (0.05–1.0).
minWidth (optional) float Minimum layout width in points.
minHeight (optional) float Minimum layout height in points.
passThrough (optional) string array Unreleased: available when building from main. Shortcuts that go to the app instead of OmniWM while a matching window has focus, such as { "Option+H", "Option+L" }. Up to 64, with the same names as keymap.set. When several rules match, the app gets all of their shortcuts. Global keyboard shortcuts only. Set them in App Rules or settings.luau.
scratchpad (optional) integer Unreleased: available when building from main. Scratchpad slot (1–10) that matching windows join when OmniWM starts managing them. Forms one destination with assignToWorkspace, so a rule can’t set both; it also can’t be combined with layout = "tile". Such a rule, or a slot outside 1–10, loads with a validation message and its scratchpad is ignored.

The defaults ship 13 rules that set minimum sizes for apps with known resize floors (Codex, Commander One, Chrome, Zed, Safari, Zen, Firefox, Dia, Spotify, Discord, Ghostty, Outlook, Messages).

return {
appRules = {
{
bundleId = "com.apple.Safari",
id = "81426D13-C1A5-475E-AFBC-00BBA05042D0",
minHeight = 220.0,
minWidth = 574.0,
},
},
}

Settings > Network & Permissions writes these decisions to the app’s settings.luau. They are separate from widget settings.luau declarations and shell.luau layout/options. External edits are live-reloaded. The section is optional: missing widget/program lists are empty, and missing service switches default to on.

Key Type Default Description
widgets (optional) array of tables {} Remembered per-host Allow and Deny for widget principals
programs (optional) array of tables {} Native program trust or denial, bound to the source, command and executable digest
services (optional) table both on Global weather and lyrics switches

Each row requires role (root, bar or component), name and source (the canonical resolved widget folder). allowed and denied are host arrays, both empty by default. A host absent from both is Not asked. Reset removes its user decision. One principal’s choices apply across its instances, displays and profiles; an override or symlink retarget to another source folder has separate decisions.

return {
shellPermissions = {
widgets = {
{
role = "component",
name = "ci-status",
source = "/Users/me/.config/omniwm/shell/lake/widgets/ci-status",
allowed = { "api.github.com" },
denied = {},
},
},
},
}

Hosts are exact names or IP literals, not URLs, with no wildcard or subdomain grant. Case and trailing dots are normalized. Declared hosts still need consent; adding instance capabilities.network only extends the declaration. Organization blocks win, then user Deny, then managed preapproval or user Allow. See HTTP consent.

Each row requires name, source and a command string array. sha256 is optional; when present it is the approved executable digest. denied defaults to false and overrides approval for that source/command until Reset. The UI writes the observed digest for both Allow and Deny. Use the trust prompt to record the actual digest; this illustrative row denies a program without inventing an approval hash:

return {
shellPermissions = {
programs = {
{
name = "provider-review",
source = "/Users/me/.config/omniwm/apps/provider-review",
command = { "provider" },
denied = true,
},
},
},
}

Program rows have no role field. Revoke stores a denial; Reset removes the row. A matching source and full command still need the current executable’s SHA-256. The digest covers executable bytes, not its interpreter, environment or dependencies. This file is not protected from native programs already running as your user. See Providers.

return {
shellPermissions = {
services = {
weather = true,
lyrics = true,
},
},
}

Both Boolean keys are optional and default to true. Turning a service off cancels work and clears shared readings; Lyrics also clears cached tracks. Turning it on resumes current widget demand. Weather sends your configured city or coordinates to api.open-meteo.com and geocoding-api.open-meteo.com. Lyrics sends the playing track’s title, artist, album and length to lrclib.net. There are no built-in service prompts.

Managed preferences can force a service off, block its hosts or disable native programs. Managed values are not stored here. Update checks, embedded Ghostty and terminal children, internal helpers and browser openURL actions are outside these shell controls.

Five arrays hold per-monitor exceptions to the global tables. Every entry requires monitorName. Use the display’s monitorDisplayUUID; for a display without a UUID, supply both monitorDisplayId and monitorName. A name alone does not match a display. All entries except orientation also carry an id UUID identifying the override row, not the display. Override keys are all optional — an omitted key falls back to the corresponding global setting. All five arrays default to empty. Custom routing grids live separately in routing.arrangements.

Each override is one record in a list. Add a record to monitorGapOverrides to override a display’s gap settings. Remove that record to restore the global values. An empty or omitted list has no overrides.

When workspaceBar.enabled = false, no monitor can show its bar. Saved monitorBarOverrides.enabled values take effect again when the global bar is enabled.

Array Overridable keys
monitorBarOverrides enabled, showLabels, showFloatingWindows, deduplicateAppIcons, hideEmptyWorkspaces, reserveLayoutSpace, autoHide, notchMode, notchActiveZoneWidth, fullWidth, fullWidthNotchMode, position, windowLevel, height, backgroundOpacity, inactiveIconOpacity, transparentBackground, solidBlackBackground, showItemBackgrounds, showAccentHighlights, xOffset, yOffset — see workspaceBar.
monitorOrientationOverrides orientation: horizontal or vertical layout orientation for that monitor
monitorNiriOverrides visibleContainerCount, fitToVisibleContainerCount, defaultContainerPrimarySpan, centerFocusedColumn, alwaysCenterSingleColumn, singleWindowFit, infiniteLoop, allowOverscroll, overscrollVisibleStripPercent, edgePeekPercent — see niri
monitorDwindleOverrides smartSplit, defaultSplitRatio, splitWidthMultiplier, singleWindowFit, useGlobalGaps, innerGap — see dwindle
monitorGapOverrides innerGap, outerGapLeft, outerGapRight, outerGapTop, outerGapBottom, fullscreenUsesOuterGaps — see gaps

For Niri’s Default New Container Primary Span, choose a monitor under Settings > Layouts > Niri > Configure. Use Global is the default and follows All Displays. Auto divides by that monitor’s Visible Containers count, or uses the first preset while Visible Containers is Off there, even when All Displays uses Custom. App’s Own Size keeps the app’s width on a horizontal strip or height on a vertical strip. Custom sets a separate percentage for that monitor. In monitorNiriOverrides, omit defaultContainerPrimarySpan for Use Global, set it to "auto" for Auto or "app" for App’s Own Size, or use a number from 0.05 to 1.0 for Custom (for example, 0.6 means 60%).

return {
monitorGapOverrides = {
{
id = "0B54A3C1-6E1B-4D5B-9A64-2F0D8A11C001",
innerGap = 8.0,
monitorDisplayUUID = "3EFD184C-D5D3-40EF-AF27-14C4222A467B",
monitorName = "DELL U2720Q",
outerGapTop = 4.0,
},
},
}

The example UUID is illustrative; replace it with the identity recorded for your display. These overrides are most easily managed from Settings > Displays and Settings > Layouts tabs, which record the display’s UUID automatically so the override survives display reconnects.