NIRI-GENCONFIG(1)
π NAME π
niri-genconfig β the niri-companion config generation tool. Yes bestie, it's from the niri-companion manual, and yes it's about to be your new fave π«Ά
β¨ SYNOPSIS β¨
niri-genconfig [OPTIONS] COMMAND [ARGS]...
πΈ DESCRIPTION πΈ
okay so here's the vibe: niri-genconfig manages your niri configuration by smooshing multiple KDL files together into one. That's the whole thing, that's the job.
But the iconic part? It supports grouping sources, which means you can switch between different visual styles or monitor setups super easily. Lowkey a game changer β one command and your whole setup changes outfits like it's doing a fit check π
π OPTIONS π
-h,--helpβ shows the help message and then dips (exits). that's it, that's the option β¨
π COMMANDS π
π§ generate [GROUP]
Combines your source files into the final niri configuration. The main character command fr fr.
-u,--use-includeβ instead of merging the file contents together, it writes a file containing KDLincludestatements for each source. Super useful for debugging, or if you just want your output file to stay clean and uncluttered πΏGROUPβ pick a specific configuration group. Standalone source strings are always included (no take-backs). Objects matching the group name get included too. Defaults to"default".
π¦ daemon [GROUP]
Starts a daemon that monitors the watch_dir π and regenerates the configuration automatically whenever a source file gets modified. It's giving personal assistant energy, no notes.
GROUPβ the configuration group to use for automatic generation.
π CONFIGURATION π
Your settings live at ~/.config/niri-companion/settings.toml π
[general]
output_pathβ the target niri config, like"~/.config/niri/config.kdl".
[genconfig]
watch_dirβ the directory to monitor. Default:"~/.config/niri/sources".sourcesβ a list of strings (paths) or arrays of objects (groups). mix and match, do your thing.
π Example Configuration π
[genconfig]
sources = [
"~/niri/base.kdl",
[
{ group = "default", path = "~/niri/visual_standard.kdl" },
{ group = "cool", path = "~/niri/visual_custom.kdl" },
]
]
π₯ EXAMPLES π₯
Generate the default configuration:
niri-genconfig generate
Generate a specific group using includes:
niri-genconfig generate -u cool
See? Ate. π
π«Ά SEE ALSO π«Ά
niri-ipcext(1), niri-workspaces(1)
and that's the whole page bestie!! niri-genconfig 4.0.1, dated May 2026 β go forth and generate, you've got this πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: niri-companion 5.0.0-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms