Released zigClipboard today


This was the first thing I ever wrote in Zig, and it was quite a fun learning experience!

At first I was on an older nixpkgs channel so I was using zig 0.12.0, so I had basically 0 completions from the LSP LOL!


After I fixed that tho it was pretty smooth sailing.


Learning about how the X server handles selections was super cool, I even went on a side tangent studying about Unix domain sockets, though I didn’t end up using them.

I wanted to have some way to track the items in my clipboard, but I didn’t really wanna disrupt the flow I’d gotten used to with linux, where if I close an app, I lose my clipboard, though it's probably more QoL than anything, I didn’t want to mess with that.


Also had to learn about UI rendering, dipped a bit into OpenGL, though I didn’t do as much as I wanted, I might do smth related to graphics next.


Hope anyone who uses it enjoys it >.<