8 ms·
I have ghostty set up with this “starfield” shader: https://github.com/0xhckr/ghostty-shaders/blob/main/starfield.glsl https://github.com/0xhckr/ghostty-shaders
by catskull 10mo ago
I have ghostty set up with this “starfield” shader: https://github.com/0xhckr/ghostty-shaders/blob/main/starfield.glsl https://github.com/0xhckr/ghostty-shaders/blob/main/starfiel...
I also have it set up to do adaptive theme, so in light mode the galaxy is mostly just a little noise on the black text but in dark mode it’s like I’m piloting a space ship. Highly recommend.
I also documented a few other shaders on my blog here: https://catskull.net/fun-with-ghostty-shaders.html https://catskull.net/fun-with-ghostty-shaders.html
Edit: I use the "starfield" shader, not the "galaxy" shader. Doh!
- nemomarx 10mo agooh that water one is cute. makes me think of old gnome effects? I wonder how distracting it is in practice
- lexicality 10mo agoBit disappointed that Galaxy is the only one without a preview, what does it look like?
- cupofjoakim 10mo agoan image is available in the PR where it was added: https://github.com/0xhckr/ghostty-shaders/pull/30 https://github.com/0xhckr/ghostty-shaders/pull/30
- catskull 10mo agolol I'm smart apparently. It's not the "galaxy" shader, it's the "starfield" shader! I should double check before commenting I guess. https://github.com/0xhckr/ghostty-shaders/blob/main/starfield.glsl https://github.com/0xhckr/ghostty-shaders/blob/main/starfiel... I'm not sure what "galaxy" looks like but it might not have worked or shown nothing.
- lexicality 10mo agoOh, that one's really pretty! I actually went to check if wezterm supported shaders after seeing the preview on your site, but tragically it doesn't.
- velcrovan 10mo agoIf only the “just snow” one would have had the snow floating down (instead of, inexplicably, up)!
- volemo 10mo agoSimply rotate your monitor. /j
- phatskat 10mo agoThe shader is pretty small, I bet a little fiddling with changing minuses to plus signs would fix that right up (or down)!
- keyle 10mo agoI added DIRECTION, and use it agains the `q`. 0.25 makes them fall slowly. #define DIRECTION 0.25 // usage: vec2 q = DIRECTION * uv * (1.0 + fi * DEPTH); be sure to tweak the rest, it's fun!
- phatskat 10mo agoThanks for reminding me that ghostty supports shaders! Now to find a good one with scanlines…
- echo_time 10mo agoThis is fantastic - but I encountered something strange. I was searching `ghostty per window shader` and your site came up as the first hit. Excellent - however, this was the text under the link: Fun with Ghostty Shaders 22 Feb 2025 — Ghostty doesn't directly support shaders, but a repo with shaders can be cloned to ~/.config/ghostty/shaders. Examples include 'drunkard+retro- ... Now, no where in the text on the site does it say this - so did google just wrongly summarize and put it in as "website text". To be clear, this isn't an AI overview - its in the main list of links! Maybe this has been happening and i just missed it but its absurd! It doesn't even fit with the text! Thanks for the resource, again, had a lot of fun with that.
- catskull 10mo agoWhat the crap is going on with this. Is Google just blindly making stuff up these days? Why would it show some preview text that doesn’t exist on the page.
- Anamon 10mo agoMaybe they noticed that everybody ignores/downvotes/hates/hides the AI overviews, so the next attempt to force people to see them is to replace descriptions and previews with generated summaries?