9 ms·
Niri: A scrollable-tiling Wayland compositor
- mahdi7d1 3y agoAnyone questioning the usefulness of this method probably don't need it. Although I haven't tried Niri itself but through this thread I got introduced to paperwm and been using it for the last 5 days and I don't think I'm going to need anything else. At some point I had real plans to make a sophisticated sway config based on my needs (and a couple of ideas I had) and I have found this solution to be perfectly inline with my ideas. My problem with TWM is that I don't need small windows because I use a small laptop and cutting the height in half is not an option. My main idea was every windows should span to full height and have meaningful width with an easy way to navigate between them and these STWM seem to be pretty on point. With just limited options to chose (when resizing a window) changes can be made in seconds (I mainly only use 4 default sizes 38% 50% 62% 100% width all spanning to take full height of the screen) Before I had to alt-tab to infinity trying to reach my desired window (I have disabled dock and top bar in Gnome and maximizing for me is the same as full-screen) and thus my greediness to use all pixels of my screen made navigating with more than three or four windows impossible. But now I have my solution. I wonder how other people are using these because I understand my use case is kinda crazy and to some extent stupid.
- AbuAssar 3y agowritten in rust
- PappGaborSandor 3y ago[dead]
- mrweasel 3y agoIs there a reason for so many tiling Wayland compositors? Are they simply easier to do? X11 always had a plethora of window managers, but really few of them where tiling. With Wayland tiling seems to outnumber stacked.
- jwells89 3y agoYeah not to detract from the linked project (it’s one of the more interesting of its type) but the rarity of floating Wayland WMs is odd. With X there’s tons of options for building a minimal traditional floating window desktop, but that has yet to become true for Wayland.
- yjftsjthsd-h 3y ago> With X there’s tons of options for building a minimal traditional floating window desktop, but that has yet to become true for Wayland. X window managers are a lot simpler than Wayland compositors, even including helper libraries, so I expect this to remain true.
- jeroenhd 3y ago> the rarity of floating Wayland WMs is odd I imagine most Linux users will be on either KDE or GNOME+Mutter. People who don't use that are likely to be into low-spec desktop environments (XFCE and such) or niche solutions (i3 and friends). There are niche stack window managers (labwc/Liri shell/Wayfire) but they don't have quite the cult following tiling WMs do.
- pkulak 3y agoGnome and KDE have kinda nailed it, don’t you think? I mean, what are you going to bring to the table by writing a stacking window manager? There are infinite ways to tile windows; one way to stack them.
- yjftsjthsd-h 3y ago> There are infinite ways to tile windows; one way to stack them. That's not really true, though; AFAIK KDE/GNOME don't implement tabbed windows or the ability to stick them together.
- nulld3v 3y agoKDE did implement tabbed windows IIRC but it was removed for KDE5 due to lack of maintenance. I think they are trying to bring them back.
- sph 3y agoFinally, I have been waiting for this for so long I considered writing my own! I do believe scrolling tiling is a better mechanism than regular tiling, and would work really well on mobile devices.
- YaLTeR 3y agoHave you seen PaperWM [1]? It runs on top of GNOME as an extension, so you get all the benefits of a fully fledged and supported DE, and it is quite a well done implementation. I've been using it for a few months now, works very good. [1]: https://github.com/paperwm/PaperWM https://github.com/paperwm/PaperWM
- pkulak 3y agoLove this idea! What determines the width of a window?
- YaLTeR 3y agoI will describe how PaperWM works; I think that behavior makes a lot of sense. There are preset widths (by default: ~33%, 50%, ~67%) which you can toggle between with a key, plus a 100% "maximized" width that you can toggle separately. This works out pretty well from my experience and gives you the convenient 33/67 and 50/50 layouts (or 33/33/33 on ultrawides). The initial window width is what the window wants. So the window is free to use any size on creation, then PaperWM expands it to full height with the same width that the window had selected.
- deleted 3y ago[deleted]
- one-punch 3y agoMy wish is a scrollable-tiling Wayland compositor (Niri or otherwise) to have nice animations (think hyprland or wayfire), compositionality/extensibility (IPC sockets of hyprland, and lately wayfire), and optionally be 3D-aware (wayfire, to future-proof when Vision Pro becomes trendy :-) ) PS: I am not affiliated with the repo in anyway, but think that scrollable-tiling should be better known.
- nullifidian 3y ago>when Vision Pro becomes trendy Vision Pro or its copies are unlikely to be unlocked enough to run user supplied linux.
- one-punch 3y agoYes, but I meant the trend set by Vision Pro may spill over to similar (commodity) hardware, and we may need to interact with 3D Linux “desktop” in the future.
- jeroenhd 3y agoVision Pro perhaps, but companies like Lenovo are already working on VR glasses you plug into a laptop or portable console (the Lenovo Legion had marketing materials leaked that showed them). The Vision Pro concept is hardly new, of course, and there are already various window managers that will work with existing VR headsets. All someone needs to do is bring out a portable PC with the right form factor. I imagine taking the controllers and the touch screen off a Steam Deck would make for something you could quite comfortably wear, though you'd want a better battery/power plug design than what Apple has in mind.
- yewenjie 3y agoIs scrollable tiling better than regular tiling in a laptop screen?
- YaLTeR 3y agoI personally find it better because, unlike regular tiling, you're not constrained to the screen size. I.e. if a 50% window width is too small, I can tile together several 67% or even 100% wide windows, and just scroll between them.
- yewenjie 3y agoThat makes sense, thanks!
- MobiusHorizons 3y agoHow is that better than alt+tab? Do you really benefit from being able to see both at the same time if you have to constantly adjust the scrolling manually? My intuition is that tiling is that scrolling negates any benefit tiling had, since it reintroduces the mouse as a core aspect of window navigation.
- mahdi7d1 3y agoIf you have more than say like 5 windows, trying to navigate to the desired one can be hellish. Here every windows have it's own place and by remembering it, you can navigate to it very easily. Scrollable and traditional Tiling are not related at all (at least for me) and try to do different things. I've been using paperwm for a couple of days and my laptop track-pad doesn't even support three finger scrolling so I'm currently using keyboard to navigate.
- YaLTeR 3y agoAlt+Tab is in most-recently-used order, whereas with scrolling it's a spatial kind of system. > since it reintroduces the mouse as a core aspect of window navigation Not really, why? You switch between windows with binds, just like in a regular tiling WM. Mod+Left/Right (H/L) goes to the window to the left/right, etc.
- the_gipsy 3y agoWhat's the point of having two 67%-width windows next to each other?
- mahdi7d1 3y agoFor me (been using paperwm since ) the real point of having them is that a lot of windows don't really benefit from extra width (heck even hacker news website shows white bars in the sides) so by having 67% windows not only I'm not losing anything but now I have a context of which windows are to left and right of currently focused window and that helps me to remember where everything is located in this big wall of windows. I remember installing something using apt and looking for when it's going to be finished in the remaining 33% of screen (This use case is not that prevalent and is really limited in how much information of the other window can be perceived) Another benefit is how sick it looks (In my opinion). Anyone looking would be interested.
- YaLTeR 3y agoAs an example, I usually keep my code editor maximized, with a 67% gitui terminal to the left and a 67% "compile & run" terminal to the right. This way nothing is too small. And then I use workspaces for different groups of windows, i.e. messaging apps, the browser, and different projects all go on different workspaces.
- the_gipsy 3y agoHow is that useful? You only see half of the other window. Why not resize it to fit 33%, or fullscreen them both? I use xmonad so I'm well used to tiling, I just don't get why you would want to have a view into only half of a window.
- YaLTeR 3y agoYou could fullscreen them, yeah. Just for gitui on my monitor, I find that 67% is both sufficient and enough, and keeping a little bit of the other window in sight helps maintain spatial context. Besides, when it's something like runtime logs in a terminal, I sometimes keep the terminal maximized (to avoid line wrapping), but only leave it peeking out, so that I can switch to it if I notice something strange in the left side of the output.