ghostty icon indicating copy to clipboard operation
ghostty copied to clipboard

Dynamic icons on Linux

Open pluiedev opened this issue 11 months ago • 3 comments

It seems that dynamic icons can be implemented on Linux by using the xdg-toplevel-icon Wayland protocol, as well as the _NET_WM_ICON Extended Window Manager Hint on X11.

Both protocols allow one to simply upload an ARGB texture buffer to the compositor/window manager, and we can obtain that by implementing the same rasterization logic as done in macOS, albeit in Zig with z2d. Sadly, z2d currently lacks gradients and a handful of blend modes that would be required to achieve complete feature parity with macOS.

Again, GNOME Wayland wouldn't work, but that's sort of a running theme by now...

pluiedev avatar Jan 05 '25 13:01 pluiedev

Cc @vancluever: any idea when work might start on implementing those missing z2d features? There's no pressure, just want to know what your plans are

pluiedev avatar Jan 05 '25 14:01 pluiedev

@pluiedev I think soon actually! No promises but I haven't forgotten about it after seeing the chatter in the Discord. I'll throw it in the issue tracker too.

vancluever avatar Jan 05 '25 20:01 vancluever

@pluiedev v0.6.0 is now officially out with the gradient and blend mode support! Let me know if yall have any issues when yall start diving in.

https://github.com/vancluever/z2d/blob/v0.6.0/CHANGELOG.md for more details!

vancluever avatar Mar 22 '25 18:03 vancluever