Skip to content

Simple utility to control niri outputs withing single-output scheme

License

Notifications You must be signed in to change notification settings

ein-shved/niri-single-output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niri single output

This is utility for niri compositor useful in setups, where you may have several outputs connected to your PC, but wants to have only once active output at a time.

Building

Cargo

You can use cargo to build this project

Nix

This project has flake files which allows you to build it as NIX package with

nix build

Usage

niri-single-output [OPTIONS] <COMMAND>

Commands

  • test Check niri availability
  • init Init outputs at startup
  • next Switch to next output

Options:

  • -p, --path <PATH> Path to niri socket
  • -s, --state <STATE> Path to niri socket
  • -h, --help Print help (see a summary with '-h')
  • -V, --version Print version

Application

This utility attended to be use from niri configuration.

Spawn the init command at startup:

spawn-at-startup "niri-single-output" "init"

Add keybinding to switch to next output:

binds {
    Mod+O { spawn "niri-single-output" "next"; }
}

Example

Usage withing Shved's NixOS configuration introduced here for gaming PC.

About

Simple utility to control niri outputs withing single-output scheme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published