2 releases

Uses new Rust 2024

new 0.1.1 May 9, 2025
0.1.0 May 8, 2025

#6 in #compositor

Download history 56/week @ 2025-05-03

56 downloads per month

GPL-3.0+

22KB
277 lines

Nirius: utility commands for niri

builds.sr.ht status License GPL 3 or later dependency status Hits-of-Code

Some utility commands for the niri wayland compositor. You have to start the niriusd daemon and then issue commands using the nirius utility. The daemon is best started by adding spawn-at-startup "niriusd" to niri's config.kdl.

Commands

  • focus [OPTIONS]: Focuses a matching window if there is one, otherwise exits non-zero. What windows match is specified using the options --app-id (-a) and --title (-t), both regular expressions. If there are multiple matching windows, the command cycles through them.
  • focus-or-spawn [OPTIONS] [COMMAND]...: Same behavior as focus except that it spawns COMMAND instead of exiting non-zero if no matching window exists.
  • nop: Does nothing except having the side-effect of clearing the list of already visited windows captured during a sequence of focus or focus-or-spawn commands.

For asking questions, sending feedback, or patches, refer to my public inbox (mailinglist). Please mention the project you are referring to in the subject, e.g., nirius (or other projects in different repositories).

It compiles, therefore there are no bugs. Oh well, if you still found one or want to request a feature, you can do so here.

builds.sr.ht status

Swayr & Swayrbar are licensed under the GPLv3 (or later).

Dependencies

~7–16MB
~188K SLoC