Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto set shader #48

Open
0x15BA88FF opened this issue Oct 19, 2024 · 0 comments
Open

Auto set shader #48

0x15BA88FF opened this issue Oct 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@0x15BA88FF
Copy link

Hello everyone,

I have been using hyprshader and realized that the hyprshade auto uses the shader in the schedule (As it is supposed to) but when the shader is changed and hyprland is reloaded (which usually happens because i run a wal16 and a slideshow wallpaper script) is resets the shader to the shader in my schedule instead of the previously active shader.

If it will be possible to implement a feature like that into hyprshade into auto or as a different command, if something like that already exists please draw my attention to it.
As at now my work around looks something like this

set_wallpaper() {
	WALLPAPER="$1"
	ACTIVE_SHADER=$(hyprshade current)

	wal --cols16 -n -q -b "$BACKGROUND_COLOR" --fg "$FOREGROUND_COLOR" --saturate $SATURATION -i "$WALLPAPER"

	hyprctl hyprpaper unload all
	hyprctl hyprpaper preload "$WALLPAPER"
	hyprctl hyprpaper wallpaper "$MONITOR, $WALLPAPER"

	hyprshade toggle "$SHADERS_PATH/$ACTIVE_SHADER.glsl"
}
@0x15BA88FF 0x15BA88FF added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant