News for hackers. Stuff that matters.
Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @12:46AM (#42885004)
This looks rad - I’m getting grumpy at i3 so I’d love to replace it.

Have you used it with multiple monitors by chance?

Thanks for sharing!

Re:Rubywm: An X11 window manager in pure Ruby by vidarh on Friday January 31, 2025 @02:25AM (#42885384)
I'm the author, and beware that it's still very much "raw". It's extremely minimalist, and I've not even tried to make it feature-complete, that includes not even testing on multiple monitors.

It is the wm I use daily, but I also know where to look if it crashes or otherwise misbehaves.

It definitely has bugs - there's something Chrome does when the file open dialog window opens that makes it sometimes fail to refresh unless I resize it that I haven't bothered tracking down, for example.

Re:Rubywm: An X11 window manager in pure Ruby by vidarh on Friday January 31, 2025 @06:58AM (#42886802)
Also to add that personally, I moved from i3 to bspwm first, and you might be happier with bspwm than mine in its current state (but thoughtful PR's are welcome)

I had basically two motivations to write my own: 1) because I could, 2) because bspwm - at least at the time had a couple of quirks I disliked: a) if I ran a file manager, it'd open on all the desktops, b) it took a hack that wasn't very satisfying to get one desktop to be floating while the others were tiled. Those were minor, and so if I hadn't already been working on extending X11 bindings for Ruby for my other Ruby projects I probably would've stayed on bspwm, but since my usage was also very simple, I figured I'd see how long I'd last, and I got close enough within a few days to decide it was viable to keep using my own instead of trying to fix bspwm.

My tolerance level for weird quirks that I'm in control of is very high, though. It feels very different when its your own bugs :)

Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:12AM (#42888936)
> My tolerance level for weird quirks that I'm in control of is very high, though.

Likewise for me and the idea that I could hack at it in Ruby is making trying it out very tempting. If I test it on multiple monitors I’ll let ya know if it works and if it doesn’t I might try to find time on the weekends to work it out and submit a patch.

I’m basically committed to not using Wayland so it wouldn’t hurt me to learn more about how X11 actually works lol.

Thanks for your thorough and thoughtful reply!

Re:Rubywm: An X11 window manager in pure Ruby by vidarh on Saturday February 01, 2025 @06:13PM (#42903526)
Sounds great. If you have any questions, my contact details are in my HN profile.
Re:Rubywm: An X11 window manager in pure Ruby by somat on Friday January 31, 2025 @02:15AM (#42885341)
I am not sure what you want out of I3, but if it is "i3 configuration is too complicated" might I suggest spectrwm. I like it because it hits that sweet spot for a tilling WM between "more configurable than dwm" and "less configurable than i3"

https://github.com/conformal/spectrwm

Plus I find it handles multiple monitors well.

Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:21AM (#42889006)
Much appreciated, I’ll give it a look
Re:Rubywm: An X11 window manager in pure Ruby by neilv on Friday January 31, 2025 @02:11AM (#42885325)
If you want tiling, but i3 requires too much manual work, you might like the more managed layouts that are the default in XMonad: https://xmonad.org/

XMonad works fine with multiple monitors. Each monitor displays one of the many virtual desktops. The normal keys for desktops and for windows work pretty intuitively with multiple monitors.

Re:Rubywm: An X11 window manager in pure Ruby by marxisttemp on Saturday February 01, 2025 @01:06AM (#42896101)
Or start from the start and give dwm a try.
Re:Rubywm: An X11 window manager in pure Ruby by gazunklenut on Friday January 31, 2025 @02:07AM (#42885309)
Re:Rubywm: An X11 window manager in pure Ruby by talldayo on Friday January 31, 2025 @10:26AM (#42888592)
Just as good a time as any to give Sway a try.
Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:20AM (#42889003)
Wayland bugs out on my machine so it’s X11 for life (or at least maybe until I get a different GPU or something idk).

But isn’t sway a drop in replacement for i3? Or does it make life easier with some additional functionality or features?

Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:18AM (#42888980)
Spoilt for the choice of which wm I want to invest a bunch of time figuring out.

Thanks for the link in any case, I just gotta spend some time one of these weekends getting whatever I end up using working smoothly

Re:Rubywm: An X11 window manager in pure Ruby by hulitu on Friday January 31, 2025 @01:04AM (#42885068)
tl;dr "It currently does not do anything to facilitate working on multiple monitors, as in my current setup I'm only using a single monitor for my Linux machine."
Re:Rubywm: An X11 window manager in pure Ruby by vidarh on Friday January 31, 2025 @02:26AM (#42885392)
I'm the author, and that's still true. I'd be open to addressing it, but it's not currently a priority for me to work on. I'm moving soon - if my new office gives me space for a second monitor that may change ;)
Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:16AM (#42888966)
Two monitor life is a good life but it’s the part of my i3 config that’s most annoying. I guess idk exactly what I want but I know I don’t want to fiddle and fight with my i3 config lol
Re:Rubywm: An X11 window manager in pure Ruby by lupusreal on Friday January 31, 2025 @06:56AM (#42886797)
Have you tried awesomewm? Tbh I never really understood why i3 is so popular and few people seem to mention awesome.
Re:Rubywm: An X11 window manager in pure Ruby by nucleogenesis on Friday January 31, 2025 @11:14AM (#42888949)
I first tried awesomewm the last time I wiped and reinstalled a new Linux and it crashed my X session. I gave it an hour or so and reluctantly went back to i3. Maybe I should give it another look :)