r/niri

▲ 7 r/niri

how to deal with normal usage

how do you all deal with floating windows? for example, when i open steam friends list it is not a floating one, or for example, i have my file manager open as a floating window, and i want to go to another app because of something, and the floating window stays in the same position in my screen instead of just going away, or sometimes i just really want to minimize a window. Those are the things i found the most uncomfortable when using niri in a normal user basis. so what would be the solutions using the niri philosophy

reddit.com
u/Competitive-Dirt-213 — 23 hours ago
▲ 0 r/niri

Workaround for Forza screen embedding directly into Steam?

Hello, issue as title. For people playing forza, what workaround are you using for niri not correctly spawning the process as its own window?

reddit.com
u/Lily722022 — 23 hours ago
▲ 29 r/niri+1 crossposts

I need some help

How do I remove this semi-transparent modular workspace panel?

u/Significant-Ad-452 — 1 day ago
▲ 129 r/niri

[CachyOS + Niri + Noctalia] First rice, pretty happy so far

u/splorux25 — 1 day ago
▲ 53 r/niri

[Asahi Linux + Niri + DMS] My first Rice on a Macbook Air M1!

u/AlexRoses47 — 2 days ago
▲ 7 r/niri

A wallpaper selector, on your terminal!

Hello folks!

I built a tool to simplify something a lot of us struggle with when dealing with DIY WM's (at least in the beggining of our journey), a way to manage and apply our wallpapers.

A simple Bash script to browse and apply them directly from the terminal, using swaybg, fzf, chafa and some more.

The project is fully open, and you can check it:

https://github.com/gustahxn/wallfinder

https://aur.archlinux.org/packages/wallfinder-git

I am just sharing this to maybe help one or other mate, and document this thing I did to learn and practice. I do not think this is something genius or a product.

Thank you!

https://reddit.com/link/1ti71jc/video/ci6rpcpu472h1/player

reddit.com
u/Lost_Habit_6230 — 2 days ago
▲ 7 r/niri

Recommendation for Beginner with low-end and old machine

I've been using linux mint for nearly 10 months. And I'd like to have the niri set up on my machine for a change.

What would be the ideal distro for me or recommended set up or guide that I can refer to help my configuring process?

As my experience is quite limited. I only daily drive linux mint for office jobs and a bit game and no more.

reddit.com
u/Heized213 — 3 days ago
▲ 8 r/niri

Please help me set up keyboard layout switching

Hi, everyone

I actively use three keyboard layouts and have gotten used to the behavior in GNOME DE—switching between the last two by quickly holding down Mod + Space, and cycling through them by holding down Mod and slowly tapping Space.

By default, the layout cycles as follows: 1 -> 2 -> 3 -> 1 ...

I can't get the perfect result using a custom keyboard layout switching script.

Here are my attempts to switch the keyboard layout to the one I'm used to:

{ pkgs, USERNAME, ... }:
let
  #   Tap  (>500ms since last press): toggle between last two used layouts
  #   Hold (<500ms between presses):  cycle through all layouts
  # State file: "<timestamp_ms> <prev_layout_index>"
  switchLayout = pkgs.writeShellScript "niri-switch-layout" ''
    STATE="/tmp/niri-switch-layout-state"
    THRESHOLD=1500

    now=$(date +%s%3N)
    current=$(niri msg keyboard-layouts | awk '/^\s*\*/{print $2}')

    last_time=0
    prev=""
    if [ -f "$STATE" ]; then
      last_time=$(cut -d' ' -f1 "$STATE")
      prev=$(cut -d' ' -f2 "$STATE")
    fi

    elapsed=$((now - last_time))

    if [ "$elapsed" -lt "$THRESHOLD" ]; then
      # Hold mode: cycle to next, keep prev unchanged
      printf '%s %s\n' "$now" "$prev" > "$STATE"
      niri msg action switch-layout next
    else
      # Tap mode: toggle to previous layout
      printf '%s %s\n' "$now" "$current" > "$STATE"
      if [ -z "$prev" ] || [ "$prev" = "$current" ]; then
        niri msg action switch-layout next
      else
        niri msg action switch-layout "$prev"
      fi
    fi
  '';
in
{
  xdg.configFile."niri/config.kdl".text = ''
    binds {
...
        Mod+Space       { spawn-sh "${switchLayout}"; }
...
    }
  '';
}

How do you handle that?

reddit.com
u/_HolyHell — 3 days ago
▲ 113 r/niri

my first proper rice

I themed this around everforest color scheme. I wrote the bar, lockscreen, and wallpaper engine using Quickshell.

  • window manager: Niri
  • launcher: Rofi
  • terminal: Kitty
  • bar, lockscreen, wallpaper engine: custom-made using Quickshell

I like the idea that when my screen is locked, the focus is on the plant to remind me to touch grass; and when unlocked, the focus should be on the clock to remind me to work. When you type your password, the focus gradually shifts away from the plant to the clock.

u/eugenood — 4 days ago
▲ 25 r/niri

Moved from alacritty to kitty but I miss alacritty's fast startup

Have been using alacritty and I loved it's fast startup (keyboard to window latency was super low). I now have moved to kitty for it's image rendering capabilities and the latency is quite noticeable.

Any way I can speed it up? I already tried using this guide but it's still quite slow (400 ms is my guess).

EDIT: System Specs:
Ryzen 5600X
AMD Radeon 7900XT
16gb of DDR4 memory
Debian 13 with Niri + Noctalia-shell

UPDATE: tried both Foot and ghostty, settled on ghostty since it worked out of the box with yazi without config and launches with similar latency as alacritty. It has both image rendering (like foot) and ligatures (unlike foot).

UPDATE 2: Thank you for all your input. I have settled on using ghostty on my desktop (which is as quick as alacritty) and foot on my 9 year old laptop.

u/eviley4 — 5 days ago
▲ 9 r/niri

fresh arch install with niri: firefox doesn't follow gtk3 theme, thunar does

I tried launching firefox with GTK_THEME=<mytheme> firefox
but it doesn't work

reddit.com
u/jorg_png — 4 days ago
▲ 95 r/niri+1 crossposts

Announcing Spell (spell-framework) 1.0.5!!!

New version of Spell[ or spell-framework](and it's associated CLI) is release with a lot of new and exciting changes, following are a few:

  • Proper implementation of scaling across different monitors. This now yields crisp element rendering rather than hazzy widgets in fractionally scaled monitors.
  • Rewrite of IPC infrastructure from Dbus towards a much lighter single threaded socket based system.
  • Introduction of custom notification manager, lock screen improvements, reexports of certain crates to complete mpris support.
  • Hot reload of slint files is possible and reflects the changes quickly if SLINT_LIVE_PREVIEW is set to one.
  • Parallel fingerprint authentication in lockscreen is now possible if fprintd-daemon is running in your distribution.
  • Touch screen supported added(Testing pending as I have no touch sensitive linux device).
  • Complete end-to-end docs of the structs, enums and traits of library.
  • Replacement of boilerplate techniques to create windows from functions to elegant macros.
  • Multi-widget event loops from the same binary(this marks the much needed feature to one or more widgets from a single source binary).

For the unfamiliar, spell is a backend (micro) framework that can be used to create desktop widgets for wayland compositors using slint declarative language.
I would love for you guys to try it out it and give your inputs. I have also created a matrix chat for the project showcasing and people to discuss.

Upcoming !!

Working on a XDG popup implementation which will sort of mark my base vision for the crate.
> The example in README and here is from a WIP shell called YoungShell made using Slint and Spell.

I have also created a single page website for the library . I would love to showcase people's shells made with spell in it. DM me if you have created something. I also devoid myself from using emojis as people said it looked AI generated last time :)
https://vimyoung.github.io/Spell/

u/Ok-Personality3889 — 5 days ago
▲ 17 r/niri

Yet another Debian package of Niri

Hi. I've made a GitHub repo with debian packages for niri and xwayland-satellite built from Dank Linux Repository PPA with debian SDK tools. Tested on Trixie, works fine. Originally built for personal use, decided to share it with the community.

https://github.com/Alexvs159/niri-debian

u/AlexPRN — 4 days ago
▲ 74 r/niri+1 crossposts

I built a minimal, terminal-based app launcher (Now with NixOS / Home Manager &amp; Niri support!

Hey everyone!

A while ago, I built a super lightweight application launcher called HyprRun. I originally made it for Hyprland because I was annoyed by how traditional launchers (like rofi or wofi) spawn floating pop-ups or overlay windows that mess with the dynamic tiling flow.

I wanted something strictly terminal-based: you hit a keybind, it opens inside your default terminal (Kitty, Alacritty, etc.), you fuzzy-find your app using fzf, the app launches completely detached, and the terminal closes instantly. Clean and native.

I recently migrated my entire setup to NixOS and switched my compositor to Niri. Because of this, I just pushed a major documentation update to the repo!

What's new:

  • NixOS / Home Manager Native: Added a full declarative module guide. No need to clone the repo on NixOS anymore; the README now shows exactly how to declare the script, escape the bash arrays (''${apps[@]}), and inject it into your path via Home Manager.
  • Niri Support: Added the exact KDL keybind configuration to make it work seamlessly with Niri's spawn rules.

It's literally just one bash script, but it keeps my workflow incredibly clean. If you are into minimalist, tiling-friendly tools, feel free to check it out!

GitHub Repo: https://github.com/fajremvp/HyprRun

u/FajreMVP — 5 days ago
▲ 15 r/niri

What do you think about lua as config lang?

So as of recently, hyprland adopted lua as configuration lang. It's a lot better than hyprlang..

So would you like to use lua in niri too instead of kdl?

I was checking the example config from hype wiki and it looked like easy to understand and write

reddit.com
u/soymadip — 6 days ago
▲ 0 r/niri

Alguien que me pueda apoyar con este error, no puedo instalar el script

u/LadderLess7273 — 4 days ago
▲ 0 r/niri

Render Issue

I've been using niri for quite a while and its been a pleasant experience.
Until recently I have not had any issues.

Recently Niri has started to render these thin black lines at the bottom of the monitor.
They will occassionaly come and go, sometimes a few lines and sometimes many.

Do you know what would be causing this?

Edit:

For clarity, they don't show up in screenshots or in grub boot menu.

u/kibomo — 4 days ago