oniri(1)

πŸ“¦ version 1.3.10, in arch rolling

πŸ’– oniri(1) πŸ’–

okay so bestie, welcome to the oniri(1) manual β€” this is the page for Oniri, the tool that's literally about to make your niri workspace life SO much easier, no cap ✨

🌸 NAME 🌸

Oniri β€” a tool that automatically maximizes the only window of a niri workspace. that's it, that's the whole vibe πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: Oniri is a tool that automatically maximizes the only window of a niri workspace. and when I say "the only window" I mean it handles both cases β€” whether it's the first one opened, or the last remaining one after all the other windows got closed. the way it just knows?? iconic. πŸŽ€

but lowkey, that last-window behavior is configurable β€” see OPTIONS below, iykyk πŸ‘‘

✨ SYNOPSIS ✨

oniri [OPTIONS]

πŸ’œ OPTIONS πŸ’œ

  • -F, --first-only β€” only maximize the first window opened, and like, do nothing to the last remaining one. simple. restrained. we respect it 🫢
  • -T, --tiling-layout β€” unmaximize the first window when you open a second one, just like a tiling compositor would. yes bestie, it's giving tiling energy fr fr πŸ”₯
  • -E, --edges-maximizing β€” maximize windows to the edges. maximize, but make it edge-to-edge 🌈
  • -R, --reclaim-space β€” reclaim that empty screen space left behind by closed windows. not the wasted pixels 😭 Oniri's got you, it'll scoop that space right back up πŸ“
  • -H, --height-tolerance <number> β€” set the height size tolerance (in pixels) used when comparing the window size to the output size, to figure out if the window is maximized or not (https://github.com/Antiz96/oniri/issues/3). defaults to 150. the tolerance is for the height, bestie, don't mix it up 🧚
  • -W, --width-tolerance <number> β€” set the width size tolerance (in pixels) used when comparing the window size to the output size, to figure out if the window is maximized or not (https://github.com/Antiz96/oniri/issues/3). defaults to 150. same energy, but for the width πŸ’«
  • -h, --help β€” display the help message. the classic. the icon πŸ‘‘
  • -V, --version β€” display version information. know your version, love your version ⭐

🌟 EXIT STATUS 🌟

so here's the tea on exit codes, because we love a status that tells us what went down:

  • 0 β€” Ok. we slayed, everything worked πŸ’š
  • 1 β€” Failed to create or acquire the lockfile. the lockfile said "no thanks" 😭
  • 2 β€” Failed to initialize niri IPC socket connections. the sockets were not socketing πŸ™ˆ
  • 3 β€” Failed to initialize the output(s) map. the output map refused to map πŸŽ€
  • 4 β€” Failed to initialize the window(s) / workspace(s) map. windows and workspaces said "not today" πŸ’€
  • 5 β€” Failed to read events from the niri IPC. couldn't hear a single event, tragic fr fr πŸ¦‹

πŸ”— SEE ALSO πŸ”—

go read up, bestie, knowledge is power πŸ’…

πŸ› BUGS πŸ›

found a bug? don't suffer in silence β€” please report bugs to the GitHub page: https://github.com/Antiz96/oniri. we'll fix it together, team effort 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Robin Candau <robincandau@mailbox.org> β€” the main character who made this happen πŸ’œ


and that's a wrap, bestie! this was Oniri 1.3.10, dated 2026-10-25, and it's the oniri(1) manual. go maximize those windows, you've got this πŸŒˆβœ¨πŸ¦‹

πŸ“¦ where this page comes from