Repository navigation
examples: subtle warm cursor-glow shader - #68
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
examples/shaders/cursor-glow.glsl, a small post-process shader that draws a subtle warm yellow glow around the cursor. It also makes the README explain how to use the example shaders.The shader
iCursorVisible. It blinks with a blinking cursor and disappears when an app hides the cursor, so a hidden cursor never leaves a stray glow.README
The shader section now says that shaders are plain files, not built in. It shows how to copy the examples into
~/.config/toastty/shaders/, uses the relative pathshaders/crt-splitflap.glslin the config example, and mentionscursor-glow.glsl.Visual evidence
Real app on Xvfb (1280×800, X11 path), default theme. Crops are shown at 2×.
Before: no shader.
After:
[shader] paths = ["…/cursor-glow.glsl"]. A faint warm halo surrounds the block cursor, and the rest of the frame is unchanged.Tests
The shader compiled through the app's GLSL path with no shader error in the log. Only a shader file and the README changed; there is no code change.