Live data from Hacker News

Niri – A scrollable-tiling Wayland compositor

github.com

101–110 of 234 posts

Re: Niri – A scrollable-tiling Wayland compositor

#101
post #13

Somebody sell me on these newfangled tiling WMs. I have been using basically the same xmonad configuration for 15+ years, pretty much updating it only on breaking or deprecated changes. What do all these new Wayland compositors have to offer except "tiling, but for wayland?" Does Wayland actually work now? I've tried it every few years for over a decade now and every time I ran into showstopper bugs (usually on nvidi…

I just setup Asus Rog G14 with nvidia 3060, I was skeptical against Wayland but basically got it working straight away with only setting drm.modeset (thanks chatgpt?).

So two external monitors working, except if they are daisy chained I am logged out when (dis)connecting them. So I use one hdmi and one dp over usb-c and it works.

So, not 100% but works better than X for me. Still too recent to have seen all the edge cases though.

Re: Niri – A scrollable-tiling Wayland compositor

#102
post #99

Niri is currently being "hugged to death", if you want to contribute: Donate to Ivan or review others PRs before making your own, the project has no commercial backing and he's "overloaded" by the projects recent success. I've been using it for years now and it's obvious that Smithay and Niri are high-quality projects, I haven't had any issues other than missing features (more of which has become available over time)…

How much does random people reviewing other people's PRs help in practice? As a maintainer I'd still want to review PRs myself before merging, no matter how many random people did it before me. As a contributor, I'd hate for a random with shallow understanding of the problem/project to come in and tell me I had to change stuff or say my PR's no good, in the chance that the maintainer is easily influenced by strong in…

Drive-by contributions of all kinds suck for the most part, don't contribute if you're not going to do it properly. At some point there's got to be more than one person able to review PRs (if the project scope mandates it).

Linus Torvalds doesn't review all changes he merges, how do you become a comaintainer if not assisting with maintenance?

If you can't review, don't make a PR (or something).

Re: Niri – A scrollable-tiling Wayland compositor

#103
post #100

I'd previously been giving Hyprland a try, but after lots of customization work, there were still a bunch of things I wasn't happy with and ended back on GNOME as a "just let me get work done" thing (I use multiple workspaces, have always have dozens or hundreds of browser windows open, depend on a bunch tray extensions). That being said, GNOME just updated versions and broke all my extensions again so I've decided t…

Re: app cycling, you might also be interested in https://github.com/isaksamsten/niriswitcher.

Re: Niri – A scrollable-tiling Wayland compositor

#104

My only complain about niri is that after a few weeks without reboot I end up with ~500 terms open, as I often open a new shell to check something, get distracted, and forget about it as it scrolls out of the view... (I usually notice at the 400-500 mark because this machine starts swapping noticeably, and closing it all is a chore that usually ends in pkill without checking...) Maybe a bit more self discipline would…

Wouldn't you have the same problem with changing workspaces? Sounds like you can't keep track of anything not currently present on the screen, which before the overview was a lot harder to deal with. One thing that could help is to create a "temporary terminal" keybinding to launch in floating mode so you'll never forget to close it. Or create a focus-or-launch bind that switches to an existing terminal (tools like Nirius can help minimize scripting). The other thing that may help is adjusting your struts so you can see that windows exist to the left or the right. More of general workflow tip than one related to just terminals.

Re: Niri – A scrollable-tiling Wayland compositor

#105
post #86

Is there a small icon that tells you the layout so you know which way to swipe? Oh maybe it's just up and down

Sorry, I don't understand what you mean. The infinite strip extends to the right, so you scroll left-right. Workspaces are up-down. If that's what you meant?

I just wasn't sure how you'd know where you are if you can go in any direction

I suppose if it's built like top-left is 0,0 you could just scroll up/left to get to the beginning

If you imagine there are 4 windows and are arranged 2x2 then I was thinking you'd have an icon somewhere like

[ ] [*]

[ ] [ ]

So you'd know you're at the top right position

Re: Niri – A scrollable-tiling Wayland compositor

#106

Earlier quoted context omitted.

Like imagine editor is on ws2, you open a terminal to /tmp/ to check something quick, it scrolls to the right, then jump to ws3 for your file manager and other stuff and go back to your editor. Now you want to access that terminal on /tmp/ again. Where was it? In i3, I just spam-switch workspaces in this case, but at least I can find them. With scrollable wms, every ws can potentially hold that target app.

It's right of your editor, where it started. If you have (having had "Editor" focused, and just opened "TermT"): Editor | (TermT) | Term | Browser (FM) | Term | Browser | etc. (where pipe delimits a pane and parens are the active pane), if you go "next desktop" from "TermT" (the terminal at /tmp), that moves you down the stack of desktops. Moving up the stack of desktops returns with focus on "TermT". You'd then go "…

I think they aren't referring to "where does it go?" and more being forgetful.

If you have something that would be reasonable to open on any workspace because it's ephemeral (they used a tmp terminal as an example), and you open it, navigate away from it, and then switch workspaces a few time, and then get pulled into a meeting or go to lunch, and come back, switch workspaces a few more times...

"Where did I leave that terminal, I dont remember where I was when I opened it."

In i3wm/sway etc, you can cycle all your workspaces and eventually one of them will have it visible. On Niri, as you cycle through all your workspaces you may never see it because you don't see all the windows in a workspace, unless you scroll through the workspace panes as you cycle workspaces.

It's not a problem necessarily, but it is something to consider. It sounds like this doesn't affect your workflow, but it might affect others.

Re: Niri – A scrollable-tiling Wayland compositor

#107
post #15

I've been running niri for months now on my primary desktop, I wrote about it for LWN here: https://lwn.net/Articles/1025866/ "Normal" tiling WMs / compositors just don't work for me, but the tiling model does. Before niri, I used PaperWM and GNOME -- but a GNOME extension can only do so much. I wish the folks doing COSMIC would add scrollable tiling, but unless/until they do I'll probably stick with niri.

I wouldn't be surprised if the COSMIC folks add it after the 1.0 release. There's been a lot of feature requests for it. In the mean time, a System76 employee created this unofficial extension to let you use other compositors within COSMIC, including Niri.

https://github.com/Drakulix/cosmic-ext-extra-sessions

Re: Niri – A scrollable-tiling Wayland compositor

#108
Niri convinced me Scrolling is The Way.

I really want windows to be able to span columns. So if I have 1 column with two windows and focus on the bottom window then create a new window/column to the right, I want that new window to be on the bottom half of column 2. I want the window from the top of column 1 to stretch across columns 1 and 2. If I again create another window/column to the right, that top left window should stretch across columns 1-3. So I should have one very wide window across the top of the screen and 3 windows across the bottom.

I've started playing with this idea in the hyprland hyprscrolling plugin but I'm kind of an idiot and don't have much free time these days.

Re: Niri – A scrollable-tiling Wayland compositor

#109
post #15

I've been running niri for months now on my primary desktop, I wrote about it for LWN here: https://lwn.net/Articles/1025866/ "Normal" tiling WMs / compositors just don't work for me, but the tiling model does. Before niri, I used PaperWM and GNOME -- but a GNOME extension can only do so much. I wish the folks doing COSMIC would add scrollable tiling, but unless/until they do I'll probably stick with niri.

Cosmic with tiling would be so incredible. I love cosmic and that's the one thing I'm missing

Re: Niri – A scrollable-tiling Wayland compositor

#110
post #105

Earlier quoted context omitted.

Sorry, I don't understand what you mean. The infinite strip extends to the right, so you scroll left-right. Workspaces are up-down. If that's what you meant?

I just wasn't sure how you'd know where you are if you can go in any direction I suppose if it's built like top-left is 0,0 you could just scroll up/left to get to the beginning If you imagine there are 4 windows and are arranged 2x2 then I was thinking you'd have an icon somewhere like [ ] [*] [ ] [ ] So you'd know you're at the top right position

You can't go in "any" direction, the infinite strip has a fixed height and extends infinitely to the right, so you scroll left-right. Then you have workspaces which are up/down but they are like separate strips entirely.

Maybe the video of the overview on this page will help: https://github.com/YaLTeR/niri/wiki/Overview

Post reply on HN