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

Cannot apply blur to anyrun #146

Open
ClaireNeveu opened this issue Apr 15, 2024 · 4 comments
Open

Cannot apply blur to anyrun #146

ClaireNeveu opened this issue Apr 15, 2024 · 4 comments

Comments

@ClaireNeveu
Copy link

Anyrun opens a fullscreen window then makes most of it transparent. This means any attempt to apply blurred transparency to anyrun blurs the whole screen. Other launchers like Tofi allow you to control the size of the opened window/layer so transparency blur is only applied to the actual launcher.

anyrun-blur

@ClaireNeveu
Copy link
Author

You should be able to achieve positioning without fullscreen by anchoring to all four edges and then setting the margins from those edges.

See https://docs.rs/gtk-layer-shell/0.8.0/gtk_layer_shell/trait.LayerShell.html#method.set_anchor and https://docs.rs/gtk-layer-shell/0.8.0/gtk_layer_shell/trait.LayerShell.html#method.set_layer_shell_margin

@Kirottu
Copy link
Collaborator

Kirottu commented Apr 16, 2024

Anyrun formerly used this way of anchoring to an edge on the display, but I changed it to use this method to allow for more freedom with positioning the window and more specifically to make the centered mode more feasible (with the anchoring method, centering with a variable window size, as Anyrun has, becomes incredibly jarring with the input field shifting as the results change)

@ClaireNeveu
Copy link
Author

FWIW I hacked together a kick and dirty POC and the input field doesn't shift at all when the results change.

@TheRealGramdalf
Copy link
Contributor

Out of curiosity (I'd like to steal borrow the transparency CSS), what's your config for the blur effect? I'm not a CSS wizard, despite the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants