Skip to content

Commit e4f88e2

Browse files
committed
Fix dropdown menus in firefox to not have rounder corners, shadows or blur
1 parent 1670666 commit e4f88e2

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

.config/picom/picom.conf

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ shadow-opacity = 0.5;
6868
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
6969
shadow-exclude = [
7070
"! name~=''",
71+
"argb",
7172
"name = 'Notification'",
7273
"name = 'Plank'",
7374
"name = 'Docky'",
7475
"name = 'Kupfer'",
7576
"name = 'xfce4-notifyd'",
76-
"name *= 'VLC'",
7777
"name *= 'compton'",
7878
"name *= 'picom'",
7979
"name *= 'Chromium'",
8080
"name *= 'Chrome'",
81-
"class_g = 'Firefox' && argb",
81+
"class_g = 'Firefox'",
8282
"class_g = 'Conky'",
8383
"class_g = 'Kupfer'",
8484
"class_g = 'Synapse'",
@@ -87,9 +87,16 @@ shadow-exclude = [
8787
"class_g ?= 'Xfce4-notifyd'",
8888
"class_g ?= 'Xfce4-power-manager'",
8989
];
90+
9091
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
9192
shadow-ignore-shaped = false;
9293

94+
rounded-corners-exclude = [
95+
"window_type = 'dropdown_menu'",
96+
"window_type = 'popup_menu'",
97+
"window_type = 'utility'",
98+
];
99+
93100
#################################
94101
#
95102
# Opacity
@@ -102,8 +109,8 @@ frame-opacity = 1;
102109
inactive-opacity-override = false;
103110

104111
# Dim inactive windows. (0.0 - 1.0)
105-
# inactive-dim = 0.1;
106-
inactive-dim = 0;
112+
inactive-dim = 0.1;
113+
107114
# Do not let dimness adjust based on window opacity.
108115
# inactive-dim-fixed = true;
109116
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
@@ -112,11 +119,14 @@ inactive-dim = 0;
112119
# blur-background-frame = true;
113120
# Do not let blur radius adjust based on window opacity.
114121
#blur-background-fixed = false;
115-
#blur-background-exclude = [
116-
# "window_type = 'dock'",
117-
# "window_type = 'desktop'"
118-
# "class_g = 'i3-frame'",
119-
#];
122+
blur-background-exclude = [
123+
"class_g ='firefox'",
124+
"class_g ='Thunderbird'",
125+
"window_type = 'dropdown_menu'",
126+
"window_type = 'popup_menu'",
127+
"window_type = 'utility'",
128+
"argb",
129+
];
120130

121131
#blur:
122132
#{
@@ -143,7 +153,11 @@ fade-out-step = 0.03;
143153
# no-fading-openclose = true;
144154

145155
# Specify a list of conditions of windows that should not be faded.
146-
fade-exclude = [ ];
156+
fade-exclude = [
157+
"window_type = 'dropdown_menu'",
158+
"window_type = 'popup_menu'",
159+
"window_type = 'utility'",
160+
];
147161

148162
#################################
149163
#

0 commit comments

Comments
 (0)