forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB9d8f4f8Ivan Molodetskikh1 month ago2997 commits

README.md142 lines, 8.2 KiBHistoryRawDownload
1<h1 align="center"><img alt="niri" src="https://github.com/user-attachments/assets/07d05cd0-d5dc-4a28-9a35-51bae8f119a0"></h1>
2<p align="center">A scrollable-tiling Wayland compositor.</p>
3<p align="center">
4 <a href="https://matrix.to/#/#niri:matrix.org"><img alt="Matrix" src="https://img.shields.io/badge/matrix-%23niri-blue?logo=matrix"></a>
5 <a href="https://github.com/niri-wm/niri/blob/main/LICENSE"><img alt="GitHub License" src="https://img.shields.io/github/license/niri-wm/niri"></a>
6 <a href="https://github.com/niri-wm/niri/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/niri-wm/niri?logo=github"></a>
7</p>
8
9<p align="center">
10 <a href="https://niri-wm.github.io/niri/Getting-Started.html">Getting Started</a> | <a href="https://niri-wm.github.io/niri/Configuration%3A-Introduction.html">Configuration</a> | <a href="https://github.com/niri-wm/niri/discussions/325">Setup&nbsp;Showcase</a>
11</p>
12
13<img width="1280" height="720" alt="niri with a few windows open" src="https://github.com/user-attachments/assets/dea5909e-1859-4aaa-9d88-d37f9663e00b" />
14
15## About
16
17Windows are arranged in columns on an infinite strip going to the right.
18Opening a new window never causes existing windows to resize.
19
20Every monitor has its own separate window strip.
21Windows can never "overflow" onto an adjacent monitor.
22
23Workspaces are dynamic and arranged vertically.
24Every monitor has an independent set of workspaces, and there's always one empty workspace present all the way down.
25
26The workspace arrangement is preserved across disconnecting and connecting monitors where it makes sense.
27When a monitor disconnects, its workspaces will move to another monitor, but upon reconnection they will move back to the original monitor.
28
29## Features
30
31- Built from the ground up for scrollable tiling
32- [Dynamic workspaces]https://niri-wm.github.io/niri/Workspaces.html like in GNOME
33- An [Overview]https://github.com/user-attachments/assets/379a5d1f-acdb-4c11-b36c-e85fd91f0995 that zooms out workspaces and windows
34- Built-in screenshot UI
35- Monitor and window screencasting through xdg-desktop-portal-gnome
36 - You can [block out]https://niri-wm.github.io/niri/Configuration%3A-Window-Rules.html#block-out-from sensitive windows from screencasts
37 - [Dynamic cast target]https://niri-wm.github.io/niri/Screencasting.html#dynamic-screencast-target that can change what it shows on the go
38- [Touchpad]https://github.com/niri-wm/niri/assets/1794388/946a910e-9bec-4cd1-a923-4a9421707515 and [mouse]https://github.com/niri-wm/niri/assets/1794388/8464e65d-4bf2-44fa-8c8e-5883355bd000 gestures
39- Group windows into [tabs]https://niri-wm.github.io/niri/Tabs.html
40- Configurable layout: gaps, borders, struts, window sizes
41- [Gradient borders]https://niri-wm.github.io/niri/Configuration%3A-Layout.html#gradients with Oklab and Oklch support
42- [Background blur]https://niri-wm.github.io/niri/Window-Effects.html for windows and layer-shell surfaces
43- [Animations]https://github.com/niri-wm/niri/assets/1794388/ce178da2-af9e-4c51-876f-8709c241d95e with support for [custom shaders]https://github.com/niri-wm/niri/assets/1794388/27a238d6-0a22-4692-b794-30dc7a626fad
44- Live-reloading config
45- Works with [screen readers]https://niri-wm.github.io/niri/Accessibility.html
46
47## Video Demo
48
49https://github.com/niri-wm/niri/assets/1794388/bce834b0-f205-434e-a027-b373495f9729
50
51Also check out these videos that showcase a lot of the niri functionality:
52
53- [Niri Is My New Favorite Wayland Compositor]https://www.youtube.com/watch?v=DeYx2exm04M by Brodie Robertson
54- [How Is niri This Good? Live Demo + Config]https://www.youtube.com/watch?v=7XmD5UyyhZQ by Nick Janetakis
55
56## Status
57
58Niri is stable for day-to-day use and does most things expected of a Wayland compositor.
59Many people are daily-driving niri, and are happy to help in our [Matrix channel].
60
61Give it a try!
62Follow the instructions on the [Getting Started]https://niri-wm.github.io/niri/Getting-Started.html page.
63Grab a desktop shell like [DankMaterialShell] or [Noctalia] (or build a more traditional setup): niri by itself is not a complete desktop environment.
64Also check out [awesome-niri], a list of niri-related links and projects.
65
66Here are some points you may have questions about:
67
68- **Multi-monitor**: yes, a core part of the design from the very start. Mixed DPI works.
69- **Fractional scaling**: yes, plus all niri UI stays pixel-perfect.
70- **NVIDIA**: seems to work fine.
71- **Floating windows**: yes, starting from niri 25.01.
72- **Input devices**: niri supports tablets, touchpads, and touchscreens.
73You can map the tablet to a specific monitor, or use [OpenTabletDriver].
74We have touchpad gestures, but no touchscreen gestures yet.
75- **Wlr protocols**: yes, we have most of the important ones like layer-shell, gamma-control, screencopy.
76You can check on [wayland.app]https://wayland.app at the bottom of each protocol's page.
77- **Performance**: while I run niri on beefy machines, I try to stay conscious of performance.
78I've seen someone use it fine on an Eee PC 900 from 2008, of all things.
79- **Xwayland**: [integrated]https://niri-wm.github.io/niri/Xwayland.html#using-xwayland-satellite via xwayland-satellite starting from niri 25.08.
80
81## Media
82
83[niri: Making a Wayland compositor in Rust]https://youtu.be/Kmz8ODolnDg?list=PLRdS-n5seLRqrmWDQY4KDqtRMfIwU0U3T · *December 2024*
84
85My talk from the 2024 Moscow RustCon about niri, and how I do randomized property testing and profiling, and measure input latency.
86The talk is in Russian, but I prepared full English subtitles that you can find in YouTube's subtitle language selector.
87
88[An interview with Ivan, the developer behind Niri]https://www.trommelspeicher.de/podcast/special_the_developer_behind_niri · *June 2025*
89
90An interview by a German tech podcast Das Triumvirat (in English).
91We talk about niri development and history, and my experience building and maintaining niri.
92
93[A tour of the niri scrolling-tiling Wayland compositor]https://lwn.net/Articles/1025866/ · *July 2025*
94
95An LWN article with a nice overview and introduction to niri.
96
97[How to test a Wayland compositor?]https://youtu.be/w44fYK5z418?list=PLK4NE4dSsLlw · *October 2026*
98
99My talk about some testing techniques used in niri: property-based tests, snapshot tests, client-server tests.
100The first half overlaps with my RustCon talk, the second half is new.
101The talk is in Russian, but I prepared full English subtitles that you can find in YouTube's subtitle language selector.
102
103## Contributing
104
105If you'd like to help with niri, there are plenty of both coding- and non-coding-related ways to do so.
106See [CONTRIBUTING.md]https://github.com/niri-wm/niri/blob/main/CONTRIBUTING.md for an overview.
107
108## Inspiration
109
110Niri is heavily inspired by [PaperWM] which implements scrollable tiling on top of GNOME Shell.
111
112One of the reasons that prompted me to try writing my own compositor is being able to properly separate the monitors.
113Being a GNOME Shell extension, PaperWM has to work against Shell's global window coordinate space to prevent windows from overflowing.
114
115## Tile Scrollably Elsewhere
116
117Here are some other projects which implement a similar workflow:
118
119- [PaperWM]: scrollable tiling on top of GNOME Shell.
120- [karousel]: scrollable tiling on top of KDE.
121- [scroll]https://github.com/dawsers/scroll and [papersway]: scrollable tiling on top of sway/i3.
122- Hyprland has a built-in [scrolling layout]https://wiki.hypr.land/Configuring/Layouts/Scrolling-Layout/.
123- [Paneru] and [PaperWM.spoon]: scrollable tiling on top of macOS.
124
125## Contact
126
127Our main communication channel is a Matrix chat, feel free to join and ask a question: https://matrix.to/#/#niri:matrix.org
128
129We also have a community Discord server: https://discord.gg/vT8Sfjy7sx
130
131[PaperWM]: https://github.com/paperwm/PaperWM
132[waybar]: https://github.com/Alexays/Waybar
133[fuzzel]: https://codeberg.org/dnkl/fuzzel
134[awesome-niri]: https://github.com/niri-wm/awesome-niri
135[karousel]: https://github.com/peterfajdiga/karousel
136[papersway]: https://spwhitton.name/tech/code/papersway/
137[Paneru]: https://github.com/karinushka/paneru
138[PaperWM.spoon]: https://github.com/mogenson/PaperWM.spoon
139[Matrix channel]: https://matrix.to/#/#niri:matrix.org
140[OpenTabletDriver]: https://opentabletdriver.net/
141[DankMaterialShell]: https://danklinux.com/
142[Noctalia]: https://noctalia.dev/