NIRI-WORKSPACES(1)

πŸ“¦ version 5.0.0, in ubuntu stonking

✨ NIRI-WORKSPACES β€” the glow-up your workspace setup deserved ✨

okay bestie, so this one lives in the niri-companion Manual, and honestly? it's giving personal assistant for your desktop πŸ’…


🌸 NAME 🌸

niri-workspaces β€” the niri-companion workspace management tool. that's it, that's the girl 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

niri-workspaces

yeah. no flags. no args. she just runs. iconic behaviour honestly ✨


πŸ’– DESCRIPTION πŸ’–

so niri-workspaces manages complex workspace layouts, which is a fancy way of saying it orchestrates the whole vibe for you πŸ”₯

here's the tea: it pops up a list of workspaces through a dmenu-compatible picker (think rofi, bestie). then when you pick one? it triggers a whole sequence of commands that opens specific apps on specific workspaces. like a little choreography. main character energy ngl πŸ‘‘


πŸŽ€ CONFIGURATION πŸŽ€

everything lives in:

~/.config/niri-companion/settings.toml

[workspaces]

  • dmenu_command β€” the picker command it uses. default is "rofi -dmenu", but you can swap in whatever dmenu-compatible cutie you want πŸ’…
  • task_delay β€” the default wait time, in seconds, between starting applications. this is the lil breather between each launch so nothing chokes 🌸

[workspaces.items]

this is where you define which workspaces show up in the picker. each item is a list of task objects. yes, a list β€” stack 'em up bestie πŸ“

Task Object Fields

  • workspace β€” the target workspace number. where is this task going? 🎯
  • run β€” the shell command to execute. verbatim, exactly as you write it.
  • task_delay β€” (optional) a specific delay just for this task. overrides the default, no cap πŸ’œ

🌈 EXAMPLES 🌈

Example Workspace Setup

[workspaces.items]
"dev" = [
  { workspace = 1, run = 'foot -e nvim' },
  { workspace = 2, run = 'brave --new-window github.com', task_delay = 1.5 }
]

Usage

running the tool:

niri-workspaces

and when you select "dev", here's the sequence it goes through, step by step:

  1. open a terminal with nvim on workspace 1.
  2. wait 0.8s (that's the default).
  3. open Brave on workspace 2.
  4. wait 1.5s (that's the specific override, bc that task said "no thank u, I need longer").

⭐ SEE ALSO ⭐

go read your siblings too, they're also slaying πŸ’œ


lowkey reminder: those task objects are lists, so the order you write them in is the order they fire. the delays are doing real work here, don't skip 'em πŸ™ˆ

okay that's the whole page, mwah πŸ’– this was niri-workspaces 4.0.1, born May 2026, from the niri-companion girliesss β€” ily, go build ur dream layout, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from