News for hackers. Stuff that matters.
Re:Show HN: Demo of My Hyprland Setup by christophilus on Monday September 08, 2025 @10:46PM (#45176812)
Hyprland has become pretty popular, maybe in part due to DHH promoting it a bit. But in my opinion, Niri is where it's at. If you're into this sort of thing and haven't tried Niri, I'd highly recommend it. The scrolling approach to window management is incredibly nice for my workflow.
Re:Show HN: Demo of My Hyprland Setup by bashtoni on Tuesday September 09, 2025 @12:15AM (#45177328)
One thing I love about Hyprland (and Sway, which I was using before it) is the ability to have a key-combination which takes me straight to where I want.

Is this possible on Niri, where the virtual desktop expands infinitely?

Re:Show HN: Demo of My Hyprland Setup by gorgoiler on Tuesday September 09, 2025 @01:01AM (#45177595)
Not OP, but my take on this from using i3/sway for years was realizing that I often had two kinds of windows open.

Important long lived ones would be on workspaces where I could jump to them by number. I would have sound mixer and music on 1, mail and instant messaging on 2, browser on 3, then dev stuff or admin tasks etc on 4+. These would stretch horizontally, of course.

What I found was the “+” in “4+” could often be quite a lot of windows. I might have to reference some PDF in order to fill out a form in another PDF, and open a new browser window to manage some other reference document, and screenshots for the final draft, and terminals for taking temporary notes, maybe an image editor to trim screenshots, etc.*

With niri, I still have the “1234” layout but these are now rows with keyboard shortcuts. The ad hoc windows that get pushed onto and popped off my mental context stack grow rightwards… as a stack!

For me, niri’s brilliance is giving me those two axes. Known topics with keyboard navigation on the vertical axis. Ad-hoc tasks within each topic on a push/pop context stack on the horizontal axis.

*Ironically, these multi-window tasks were always the most mundane! Form filling for a mortgage application, say, or managing a report review for multiple authors. Software engineering — one of the more complicated things one can do on a computer, is all very neatly contained inside an IDE / tmux+vim+sh.

Re:Show HN: Demo of My Hyprland Setup by bashtoni on Tuesday September 09, 2025 @06:52PM (#45190530)
OK, this sounds interesting enough for me to give it a try. I actually think the two axis approach would work well for the way I work.
Re:Show HN: Demo of My Hyprland Setup by chills on Tuesday September 09, 2025 @02:35AM (#45178244)
In addition to sibling commenter, niri exposes everything over an IPC accessible via its cli (or a socket), so if you wanted, say, a keybind to switch to your terminal, no matter where it is, you could bind it to this:

  niri msg action focus-window --id $(niri msg --json windows | jq '.[] | select(.app_id=="foot") | .id')
Re:Show HN: Demo of My Hyprland Setup by boomskats on Tuesday September 09, 2025 @04:10AM (#45178998)
Nice! I have a jq/ipc based abomination of a run-or-raise equivalent that works spectacularly well, including cycling windows in order. I keep saying I'll stick it in a repo.
Re:Show HN: Demo of My Hyprland Setup by yencabulator on Tuesday September 09, 2025 @12:10PM (#45184075)
Niri has workspaces. By default they're dynamic and removed when left empty, but you can name them (in config or on the fly) and they become permanent. My current workspaces are

  1: notes
  2: browser
  3: code
  4: mail
  5 onward: dynamic or named on the fly
Re:Show HN: Demo of My Hyprland Setup by 3836293648 on Monday September 08, 2025 @11:27PM (#45177054)
Having tried Niri, it's probising but very much not ready for primetime yet. And extremely miserable to use without a trackpad, as opposed to all other tiling WMs that are keyboard first.
Re:Show HN: Demo of My Hyprland Setup by kuuchuu on Tuesday September 09, 2025 @12:24AM (#45177382)
It has felt very "keyboard first" for me. The hotkeys are very customizable.
Re:Show HN: Demo of My Hyprland Setup by mmgutz on Tuesday September 09, 2025 @07:32AM (#45180538)
As someone who spends most of his time in nvim and TUIs (yazi, lazydocker, termusic, tmux in ssh ...), Niri is as keyboard centric as you want. Mine is configured to use vim keys.
Re:Show HN: Demo of My Hyprland Setup by christophilus on Tuesday September 09, 2025 @09:30AM (#45181664)
I’ve used it daily without a trackpad for months now. So, I don’t k on what you’re talking about.
Re:Show HN: Demo of My Hyprland Setup by weikju on Monday September 08, 2025 @11:07PM (#45176934)
I second this. I first got exposed to this concept via the gnome extension, PaperWM. Now using Niri as well.
Re:Show HN: Demo of My Hyprland Setup by no_carrier on Tuesday September 09, 2025 @05:54AM (#45179834)
Niri looks promising to me. After I discovered PaperWM I moved on to Material Shell, which was still the best workflow I've come across to date. It was basically gnome with a 2d grid: you could scroll workspaces left and right and then again on the vertical axis. The author sort of abandoned it (it was a Gnome extension) in order to go all in on their own desktop environment with the same concept. I'm guessing that'll take a while to get off the ground.
Re:Show HN: Demo of My Hyprland Setup by jeena on Monday September 08, 2025 @10:57PM (#45176875)
It looks similar with the difference of scrolling. Kind of interesting, and you still can have stacks of windows. But how does it decide on how wide a window should be?
Re:Show HN: Demo of My Hyprland Setup by bayesianbot on Monday September 08, 2025 @11:42PM (#45177153)
Usually you'd have some predefined widths, like 33%, 50% and 67%, and use a shortcut to cycle between them. And you can define window rules to start some applications with different width than your default.

edit: and as fellow niri user, I recommend people try it. I think it's one of the easiest tiling WMs to get into, it feels very natural within minutes.

Re:Show HN: Demo of My Hyprland Setup by likeclockwork on Tuesday September 09, 2025 @12:39AM (#45177470)
Agreed. I don't find automatic tiling that useful in general because you don't really get strong layout control but I also never found say i3 or manual tiling that useful on a small laptop screen. (It's pretty nice on a large screen or ultrawide, though)

However Niri works fantastically in both use cases because it gives me what I really want: Resizable, rearrangeable columns of windows, as many as I need for the current task and a way to quickly rearrange and spatially navigate so that I can see exactly what I need to see.

Re:Show HN: Demo of My Hyprland Setup by TiredOfLife on Tuesday September 09, 2025 @02:37AM (#45178258)
The horizontal scrolling was the only thing i HATED about Windows 8. It's nauseating
Re:Show HN: Demo of My Hyprland Setup by mindcrash on Friday September 12, 2025 @09:12AM (#45221759)
> maybe in part due to DHH promoting it a bit

Try PewDiePie. around 6.7M people now know something like Linux and Hyprland exists, and that in 2025 it might even work better than MacOS or Windows and whatever desktop environments on Linux came before.

https://www.youtube.com/watch?v=pVI_smLgTY0