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:
~/.config/niri-companion/settings.toml
Check out the example configuration file for reference.
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-genconfig generate: Generates an output file (general.output_path) by conconcatenating sources (genconfig.sources)niri-genconfig daemon: Same things as above, but auto-generates if files inside the watch directory (genconfig.watch_dir) have changed. Works as a daemon.
niri-ipcext
[!WARNING]
niri-ipcextdoes not use a proper KDL parser/writer. Instead, it relies on a custom workaround described below, which can be brittle in some cases.
niri-ipcext replace: Editsconfig.kdlby replacingold_textwithnew_text.niri-ipcext restore: Reverts the changes by runningniri-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.
- Needs rofi or any program that has a dmenu functionality
Important Notes
The config.kdl file should be treated as temporary:
niri-genconfigwill overwrite it when generating configs.niri-ipcextdepends onconfig.kdlbeing updated dynamically.
If you want a permanent configuration, keep it in separate files and let niri-genconfig handle the final config.kdl.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file niri_companion-2.0.0.tar.gz.
File metadata
- Download URL: niri_companion-2.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e7ca649bfee86760236c93ac2ed5ca8fa5fdde5f121db9025a253297fab4a8
|
|
| MD5 |
b0d484cd65b997224e91153adb0f9954
|
|
| BLAKE2b-256 |
3a8701296512250635995766fd8a258aaf05a145678bee4ce5ae532e80326c4e
|
File details
Details for the file niri_companion-2.0.0-py3-none-any.whl.
File metadata
- Download URL: niri_companion-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18b715ab5cda48bcc57dc009abee88035cd358ba9be30820e6b508ee323571f5
|
|
| MD5 |
635f4fafe06596e0daf12ca10e8b3484
|
|
| BLAKE2b-256 |
b0fa2a3c588bd5ab0a67f473518a206324ce0e280ec07380e4b94eb5a50d0d25
|