picom
picom copied to clipboard
Opacity rules are applied randomly
My config has a couple of opacity rules, but none of them work with this fork, probably because it doesn't follow the yushi's original so it is very far behind. When I launch this picom, all windows have opacity as if all were focused or all unfocused. Blur and shadow works fine, it's just the opacity, probably because of the complicated rules.
Platform
Archlinux
config:
inactive-opacity = 0.8;
active-opacity = 1;
frame-opacity = 1.0;
opacity-rule = [
"100: window_type = 'normal' && (
class_g = 'vlc' ||
class_g = 'Shotcut' ||
class_g = 'Gimp' ||
class_g = 'Soffice' ||
class_g = 'Pinta' ||
class_g = 'feh' ||
class_g = 'scrcpy'
)",
"80:focused && (
class_g = 'Pcmanfm' ||
class_g = 'GParted' ||
class_g = 'discord' ||
class_g = 'Pavucontrol') ||
class_g *= 'NetBeans' ||
class_g *= 'Tlp-UI'",
"60:!focused && window_type = 'normal' && (
class_g = 'Pcmanfm' ||
class_g = 'GParted' ||
class_g = 'discord'
)",
"30:class_g = 'Pavucontrol' && !focused",
"70:!(
window_type = 'normal' ||
window_type = 'dock' ||
window_type = 'utility'
)"
];
wintypes: {
#firefox has picture in picture window of type utility
utility = { opacity = 1.0; shadow = false; };
dock = { opacity = 1.0; shadow = false; };
};
experimental-backends = true;
backend = "glx";
glx-no-stencil = true;
glx-no-rebind-pixmap = false;
vsync = true;
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = false;
detect-client-opacity = false;
detect-transient = false;
detect-client-leader = false;
refresh-rate = 0;
use-damage = true;
log-level = "warn";
PS: I left out the blur, fade and shadow settings as it's irrelevand