News for hackers. Stuff that matters.
Re:Plwm – An X11 window manager written in Prolog by xorbax on Monday May 26, 2025 @12:06AM (#44093887)
> My favorite example is an X11 windows manager implementing in about 18 lines of python.

Uh, do you happen to know where to find that project? Sounds pretty comprehensible for most people as an example.

Re:Plwm – An X11 window manager written in Prolog by alpaca128 on Monday May 26, 2025 @04:41AM (#44095332)
Not sure about that Python project, but years ago I found this very minimal WM in a few hundred lines of C helpful: https://github.com/dylanaraps/sowm

Was a lot easier to understand for me than, say, dwm.

Re:Plwm – An X11 window manager written in Prolog by ChanderG on Monday May 26, 2025 @06:32AM (#44095975)
I created my own X11 window manager [1] at the start of this year in around 800 lines of C.

I had been using dwm (4000 lines of C) for many years and wished to write my own for a long time, but what made me take the leap was really steveWM [2] and TinyWM [3] which are both super small.

[1] - https://github.com/ChanderG/cellwm [2] - https://github.com/stodd1031/steveWM [3] - https://github.com/mackstann/tinywm

Re:Plwm – An X11 window manager written in Prolog by vidarh on Monday May 26, 2025 @07:12AM (#44096215)
TinyWM was the starting-point for my wm in Ruby as well. It really drives home just how little you need to get started.
Re:Plwm – An X11 window manager written in Prolog by spicybright on Tuesday May 27, 2025 @05:13PM (#44110731)
Sure!

https://github.com/mackstann/tinywm

I've run it once a long time ago and worked perfectly fine for me.