Configuration
OmniWM keeps settings in ~/.config/omniwm/settings.luau. If XDG_CONFIG_HOME is an absolute path, it uses $XDG_CONFIG_HOME/omniwm/settings.luau instead. The first launch creates a file containing the default values. The Settings window and your editor work on that same file.
The file returns one Luau table. This small example uses an eight-point inner gap and takes the default values for the other settings:
--!strictlocal settings: OmniWMSettings = { gaps = { size = 4 * 2 },}return settingsYou can use local variables, functions and require("./sizes") or require("../shared/sizes") to load nearby .luau files. Each path starts at the folder of the file that calls require. Changes to the main file or any loaded helper reload your settings. Shortcuts, events and timers belong in the separate, optional init.luau.
To enable editor completion and type checking, open the config folder in luau-lsp, select the standard platform, enable the new solver, and register the bundled omniwm-config.d.luau as a definitions file. For an app installed in Applications, it lives at /Applications/OmniWM.app/Contents/Resources/OmniWM_OmniWM.bundle/Contents/Resources/omniwm-config.d.luau. Keep the --!strict and OmniWMSettings annotation shown above. See the settings reference for keys, defaults and examples.
init.luau
Section titled “init.luau”Shortcuts, palette commands, events, timers and window rules go in the optional init.luau next to settings.luau. The init.luau Reference covers its functions, limits and recipes.
Rules and shortcuts: two homes
Section titled “Rules and shortcuts: two homes”settings.luauand the Settings window hold the window rules you edit by hand and one shortcut for each action.init.luauholds rules and shortcuts that code builds, such as a rule for each app in a list, and extra key chords for the same actions.- Order: OmniWM applies the Settings rules first, then
init.luau’s. Aninit.luaurule whoseidrepeats a Settings rule is skipped, and the Settings window marks it Overridden by Settings. - Script shortcuts take precedence. An enabled
init.luaubinding takes over any overlapping Settings chord or mode key. The saved assignment stays in Settings and works again when you remove the winning binding. The notice shows the affected chord, the Settings action and the winning file and line, plus the total if several assignments are overridden. Load and callback errors appear first.
Opening the file
Section titled “Opening the file”Click OmniWM’s status bar icon and use:
- Reveal Settings File — shows
settings.luauin Finder. - Edit Settings File — opens it in your editor.
If you delete the file while OmniWM is running, it keeps the working values and asks you to restore the file. To start over instead, these commands can create a new file with defaults.
Settings window
Section titled “Settings window”The searchable Settings window groups controls by task. Desktop contains Styles & Widgets, Menu Bar and Network & Permissions; Windows contains Workspaces, Layouts, Displays, App Rules, and Overview. Appearance holds motion, borders, and system-wide window corners. Layouts has Spacing, Niri, and Dwindle tabs. App Rules now uses the same settings window, with Save/Revert and discard protection for drafts. Clipboard retention limits and scratchpad labels can be edited in the file; clipboard history can be enabled from the Command Palette’s Clipboard mode.
The Settings window is a managed floating window. It opens on the active workspace and appears in the window switcher, Overview and focus history, and it hides and returns with its workspace like any other floating window. Opening Settings again focuses the existing window. Other OmniWM windows, such as the Command Palette and the Welcome window, stay unmanaged.
Start at Login is managed by macOS, and System-wide Window Corners changes a macOS preference. Neither is stored in settings.luau.
Settings > Appearance > App & Motion carries a System-wide Window Corners control (macOS 26.4+). It writes the system-wide preference, so it changes standard Mac app windows everywhere — including windows OmniWM does not manage — and apps that draw their own window chrome may ignore it. Affected apps must be fully quit and reopened before the new radius applies.
Live reload and recovery
Section titled “Live reload and recovery”- Changing a literal in Settings edits that value in place and preserves surrounding code and comments. A Code mark beside a calculated value shows its source line. Click the mark to inspect the expression.
- Editing a calculated value in Settings asks before replacing it. If a function calculates a whole group, the question shows which other values will become fixed. Cancel keeps the code. If the source changes while the question is open, the old approval expires.
- A typo such as
gaps.ouetror a retired shortcut ID makes OmniWM reject the entire file, including other edits in the same save. While running, it keeps the last working settings, shows the file and line in an error, and blocks saves from the Settings window until you fix the file. If you start OmniWM with an invalid file, every setting from that file uses its default. Invalid values and broken helpers follow the same rule. - Interface language changes take effect at the next launch.
- A symlink to your dotfiles stays a symlink when Settings writes through it. If the target is read-only, edit its source instead.
Runtime state lives elsewhere
Section titled “Runtime state lives elsewhere”Volatile runtime state is kept out of the config file so settings.luau stays clean for dotfile management. Clipboard history, update-check timestamps, the persisted window restore catalog (including Niri column and Dwindle tree placements), the Quake terminal’s custom frame, and the last palette mode live in ${XDG_STATE_HOME:-$HOME/.local/state}/omniwm. XDG_STATE_HOME is honored only when it is an absolute path beginning with /; otherwise OmniWM uses ~/.local/state/omniwm.
The separate OmniWM Dev app uses omniwm-dev instead of omniwm for both its config and state directories. See Building from Source for the development build workflow.
What’s in the file
Section titled “What’s in the file”The full schema is documented key by key in the Settings Reference. At the top level:
| Table / array | Covers |
|---|---|
general |
Hotkeys master switch, Hyper key, default layout, updates, IPC, animations, language |
focus |
Focus-follows-mouse and monitor-edge focus behavior |
mouseWarp |
Cursor warping between monitors |
routing |
macOS vs. custom routing and saved arrangements per connected display set |
monitors |
Optional ranking that decides which connected display is Main, Secondary, and so on |
gaps |
Inner and outer gaps |
niri |
Scrolling (Niri) layout options |
dwindle |
Dwindle (BSP) layout options |
borders |
Focused-window border |
overview |
Overview visibility, zoom, input and colors |
windowSwitcher |
Command-Tab / Option-Tab window switcher |
keyboardModes |
Shortcut pause timeout |
workspaceBar |
Workspace bar appearance and behavior |
island |
Dynamic Island master switch |
gestures |
Mouse and trackpad gestures |
statusBar |
Menu bar icon extras |
statusMenu |
Status menu panel contents |
hiddenBar |
Menu bar icon concealment |
clipboard |
Clipboard history limits |
launcher |
Saved applications, commands, scripts and CLI launches; execution defaults and discovery folders |
commandPalette |
Unified search and the palette modes it covers |
quakeTerminal |
Drop-down terminal |
scratchpads |
Scratchpad slot labels |
appearance |
Light/dark appearance of OmniWM’s own UI |
shellPermissions |
Remembered OmniShell host/program decisions and built-in service switches |
hotkeys |
One entry per assignable action |
workspaces |
Workspace definitions |
appRules |
Per-app window rules |
monitor*Overrides |
Per-monitor bar, orientation, Niri, Dwindle, and gap overrides |