jbuchermn/newm

newm blur and transparency efffect not working

DaMar4 opened this issue · 2 comments

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

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.

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.