Skip to main content

Niri companion scripts

Project description

Niri Companion

Niri Companion is a toolkit that adds extra functionality to niri.

Installation

Install with pipx or pip accordingly:

pipx install niri-companion
pip install niri-companion

Configuration

The configuration file is located at, check out the example configuration file:

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

Tools

niri-genconfig

Generates a config.kdl by concatenating files from a specified directory. This lets you split your configuration into smaller, more manageable pieces.

niri-ipcext

[!WARNING] niri-ipcext does not use a proper KDL parser/writer. Instead, it relies on a custom workaround described above, which can be brittle in some cases.

Edits config.kdl by replacing old_text with new_text. To revert the changes, run niri-genconfig generate. This provides IPC-like behavior, similar to Hyprland's IPC.

niri-workspaces

Lets you define workflows that automatically launch specific programs on specific workspaces. For example: open your browser on workspace 1 and your editor on workspace 2.

Important Notes

The config.kdl file should be treated as temporary:

  • niri-genconfig will overwrite it when generating configs.
  • niri-ipcext depends on config.kdl being updated dynamically.

If you want a permanent configuration, keep it in separate files and let niri-genconfig handle the final config.kdl.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niri_companion-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niri_companion-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file niri_companion-0.1.0.tar.gz.

File metadata

  • Download URL: niri_companion-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for niri_companion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8d52753d1f04022518b0cdee0b312fdf980f2cb0b9ffdf12b223097517e3112
MD5 1c55683e09947d4c41c27728785a0a93
BLAKE2b-256 403bc21c4068be81a124aa7a351e2373a2ce5084cbd92fa97ed54c661504d11b

See more details on using hashes here.

File details

Details for the file niri_companion-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for niri_companion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 890cb2f4f1a5edd0077f684d593dd9b3ceec9dc2b483295bb38ff79f7f259b62
MD5 dabcdac450ac4470c4ab36a52fe10d65
BLAKE2b-256 2249a07a3cd4cbd22d7126299e00949f03671a6bbe58425aa058dd7c27c0f405

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page