Skip to content

Latest commit

 

History

History
108 lines (83 loc) · 6.26 KB

README.md

File metadata and controls

108 lines (83 loc) · 6.26 KB

niri

A scrollable-tiling Wayland compositor.

Matrix GitHub License GitHub Release

Getting Started | Configuration | Setup Showcase

About

Windows are arranged in columns on an infinite strip going to the right. Opening a new window never causes existing windows to resize.

Every monitor has its own separate window strip. Windows can never "overflow" onto an adjacent monitor.

Workspaces are dynamic and arranged vertically. Every monitor has an independent set of workspaces, and there's always one empty workspace present all the way down.

The workspace arrangement is preserved across disconnecting and connecting monitors where it makes sense. When a monitor disconnects, its workspaces will move to another monitor, but upon reconnection they will move back to the original monitor.

Features

  • Built from the ground up for scrollable tiling
  • Dynamic workspaces like in GNOME
  • Built-in screenshot UI
  • Monitor and window screencasting through xdg-desktop-portal-gnome
    • You can block out sensitive windows from screencasts
  • Touchpad and mouse gestures
  • Configurable layout: gaps, borders, struts, window sizes
  • Gradient borders with Oklab and Oklch support
  • Animations with support for custom shaders
  • Live-reloading config

Video Demo

demo.mp4

Status

Niri is stable for day-to-day use and does most things expected of a Wayland compositor. Many people are daily-driving niri, and are happy to help in our Matrix channel.

Give it a try! Follow the instructions on the Getting Started wiki page. Have your waybars and fuzzels ready: niri is not a complete desktop environment.

Here are some points you may have questions about:

  • Multi-monitor: yes, a core part of the design from the very start. Mixed DPI works.
  • Fractional scaling: yes, plus all niri UI stays pixel-perfect.
  • NVIDIA: seems to work fine.
  • Floating windows: yes, starting from the next release.
  • Input devices: niri supports tablets, touchpads, and touchscreens. You can map the tablet to a specific monitor, or use OpenTabletDriver. We have touchpad gestures, but no touchscreen gestures yet.
  • Wlr protocols: yes, we have most of the important ones like layer-shell, gamma-control, screencopy. You can check on wayland.app at the bottom of each protocol's page.
  • Performance: while I run niri on beefy machines, I try to stay conscious of performance. I've seen someone use it fine on an Eee PC 900 from 2008, of all things.
  • Xwayland: no built-in support, but xwayland-satellite is easy to set up and works very well.
    • Steam and games, including Proton: work perfectly through xwayland-satellite.
    • JetBrains IDEs, Ghidra: work well through xwayland-satellite.
    • Discord and other Electron apps: work well through xwayland-satellite.
    • Chromium and VSCode: work perfectly natively on Wayland with the right flags.
    • X11 apps that want to position windows or bars at specific screen coordinates: won't work well; you can run them in a nested compositor like labwc or rootful Xwayland.
    • Display scaling (integer or fractional) will make X11 apps look blurry; this needs to be supported in xwayland-satellite. For games, you can run them in gamescope at native resolution, even with display scaling.

Inspiration

Niri is heavily inspired by PaperWM which implements scrollable tiling on top of GNOME Shell.

One of the reasons that prompted me to try writing my own compositor is being able to properly separate the monitors. Being a GNOME Shell extension, PaperWM has to work against Shell's global window coordinate space to prevent windows from overflowing.

Tile Scrollably Elsewhere

Here are some other projects which implement a similar workflow:

Contact

We have a Matrix chat, feel free to join and ask a question: https://matrix.to/#/#niri:matrix.org