News for hackers. Stuff that matters.
Re:Xwm – a tiny XCB floating window manager by mcpcpc on Monday November 09, 2020 @06:25AM (#25033627)
screenshot (in use): https://i.redd.it/ve0ra9qip7y51.png

Took heavy inspiration from dwm, bluewm, tinywm, lainwm and the likes to create what I would consider a minimally viable window manager solution. The project is C99 POSIX and MISRA compliant, which promotes portability, security and safety of the source.

I would say the target audience are those that spend most of their time staring at a single terminal and periodically need to jump into a GUI based application (e.g. web browser). There are many projects like this, but I am hoping to improve on previous ones by reducing the overall complexity (per the KISS principle) and improve upon documentation.

I am still developing my C programming skills, so all feedback is welcomed. =)

Enjoy!

Re:Xwm – a tiny XCB floating window manager by pdkl95 on Monday November 09, 2020 @06:58AM (#25033842)
> screenshot (in use): https://clbin.com/OEh1h

    $ HEAD https://clbin.com/OEh1h | grep Content-Type
    Content-Type: text/html; charset=UTF-8
The webserver is sending the image with the wrong content type, which makes some browsers (like mine) display the file as text. Viewing the file locally as a png works fine, but the browser only knows it's a png from the HTTP Content-Type header.

> I am hoping to improve ... reducing the overall complexity

I wish more projects had this goal.

    LDLIBS = -lm
    ALL_LDFLAGS = $(LDFLAGS) $(LIBS) -lxcb -lxcb-keysyms
The runtime deps - like the wm screenshot - are beautifully simple.
Re:Xwm – a tiny XCB floating window manager by mcpcpc on Monday November 09, 2020 @08:03AM (#25034326)
Re:Xwm – a tiny XCB floating window manager by mcpcpc on Monday November 09, 2020 @07:49AM (#25034180)
thanks! I spent quite a bit of time stripping out as many dependencies as i could.

will update the screenshot link shortly.

Re:Xwm – a tiny XCB floating window manager by callinyouin on Tuesday November 10, 2020 @11:06AM (#25047485)
Love the simplicity, and it looks like this could serve as a great example for people wanting to write their own WM.

Might I suggest adding a link to a screenshot directly in the README? I personally have a weird fascination with window managers so I'm likely to check this out regardless, but a screenshot could go a long way in terms of generating interest. If you care about that sort of thing. :)

I see you have a minimalist IRC client as well. Funny, I've been meaning to get back into C specifically to toy around with the idea of writing my own WM and IRC client. Both projects look like great examples, thanks for sharing!

Re:Xwm – a tiny XCB floating window manager by mcpcpc on Tuesday November 10, 2020 @01:45PM (#25049499)
Thanks! It's been an almost 8mo journey learning C to get to this point. Ultimately it was the people that I interacted with and the user contributions that propelled me to make xwm.

I intentionally omitted a screenshot in the README as xwm, by itself, is not attractive. Also, really I wanted to leave ricing/tweak/patching to be entirely user contribution driven. I may consider, though, adding a directory in the patches (https://github.com/mcpcpc/xwm-patches) repo for user contributed screenshots though.

Re:Xwm – a tiny XCB floating window manager by tyingq on Tuesday November 10, 2020 @11:39AM (#25047884)
Different screenshot: https://clbin.com/iu9cJ