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

newm blur and transparency efffect not working #136

Open
DaMar4 opened this issue Jul 27, 2022 · 2 comments
Open

newm blur and transparency efffect not working #136

DaMar4 opened this issue Jul 27, 2022 · 2 comments
Labels
documentation Can be answered by improving documentation

Comments

@DaMar4
Copy link

DaMar4 commented Jul 27, 2022

anyone can help me, I try put blur and transparent effect on newm but it not work
this is my config rule, but the effect is not visible:

def rules(view):
common_rules = {"float": True, "float_size": (750, 750), "float_pos": (0.5, 0.35)}
float_app_ids = ( "pavucontrol", "blueman-manager", "Pinentry-gtk-2", ) float_titles = ("x", "Dialect") blur_apps = ("kitty", "rofi", "waybar", "Alacritty","thunar","xfce4-terminal","Code") app_rule = None # Set float common rules if view.app_id in float_app_ids or view.title in float_titles: app_rule = common_rules if view.app_id in blur_apps: app_rule = {"blur": {"radius": 5, "passes": 6}} if view.app_id == "catapult": app_rule = {"float": True, "float_pos": (0.5, 0.1)} # ) return app_rule

watch my problem:
https://youtu.be/bYbqSaJT7Bg

@x0rzavi
Copy link

x0rzavi commented Jul 28, 2022

Hi @DaMar4, you need to turn on opacity for apps you need blur on, for eg, in alacritty you can set opacity, also in waybar selectors need to have background as transparent

Edit: My bad, I later found that its possible to blur apps, by just setting opacity & blur. So maybe something's wrong with the config. Extremely sorry for misleading.

@jbuchermn
Copy link
Owner

jbuchermn commented Aug 8, 2022

Hi @DaMar4, you need to turn on opacity for apps you need blur on, for eg, in alacritty you can set opacity, also in waybar selectors need to have background as transparent

Edit: My bad, I later found that its possible to blur apps, by just setting opacity & blur. So maybe something's wrong with the config. Extremely sorry for misleading.

Correct me if I'm wrong, but I don't think that's misleading; I think that's completely right. I can't see anywhere that you actually set an opacity for alacritty (neither in newm, nor in its own config - the windows look completely opaque to me). Of course, you won't see any blur if you draw an opaque window above it.

@jbuchermn jbuchermn added the documentation Can be answered by improving documentation label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Can be answered by improving documentation
Projects
None yet
Development

No branches or pull requests

3 participants