feat/screen filter: Add native screen-filter script with shaders, Rofi menu selector, and boot persistence - #1819
Open
anshifmonz wants to merge 4 commits into
Open
Conversation
|
Great addition indeed! |
Owner
|
This is absolutely great. Thank you so much. |
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.
Hey @mylinuxforwork! 👋
I put together a standalone screen filter utility for Hyprland and thought it would make a great addition to the dotfiles.
It allows users to toggle and cycle through GLSL screen shaders (such as Nightlight, Grayscale, Sepia, Invert Colors, and Blue-light filters) directly using keyboard shortcuts, an interactive Rofi menu, or CLI subcommands.
Key Highlights
hyprctlshader calls under the hood (hl.config/keyword) — no need to install or configurehyprshade.autostart.lua.~/.config/hypr/shaders/. If users drop any custom.fragor.glslfiles in there, they will show up in the cycle and Rofi menu immediately.config-compact.rasitheme, pre-highlighting the active shader and allowing 1-click selection or disabling.What's Included
dotfiles/.config/hypr/scripts/screen-filter.sh- Main executable script (cycle,--menu,restore,off,set <name>,status,list).dotfiles/.config/hypr/shaders/- Preset shader files (greyscale.frag,nightlight.frag,sepia.frag,invert-colors.glsl, and 25/50/75% blue-light GLSL filters).dotfiles/.config/hypr/conf/keybindings/default.lua- Added default shortcuts.dotfiles/.config/hypr/conf/autostart.lua- Added silentrestorehook on Hyprland startup.Default Shortcuts
SUPER + SHIFT + NSUPER + CTRL + NSUPER + ALT + NTesting & Verification
Tested on the latest Hyprland build with ML4W config:
Esc).screen-filter.sh restore).SUPER + CTRL + K).Demo