Skip to content

Commit bf15aab

Browse files
committed
Improve marco-picom compatibility
1 parent b033d3a commit bf15aab

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

marco-picom

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ ! -x "$(which "${WM}")" ] || [ ! -x "$(which "${COMP}")" ]; then
1010
exit 1
1111
fi
1212

13-
# Disable vsync is the NVIDIA compositor is enabled.
13+
# Disable vsync if the NVIDIA compositor is enabled.
1414
if [ -x "$(which nvidia-settings)" ]; then
1515
if nvidia-settings -q CurrentMetaMode -t | grep ForceCompositionPipeline=On; then
1616
VSYNC="--no-vsync"
@@ -39,30 +39,31 @@ else
3939
--detect-client-opacity \
4040
--glx-no-stencil \
4141
--no-use-damage \
42-
--inactive-opacity-override \
4342
--mark-wmwin-focused \
4443
--mark-ovredir-focused \
45-
--shadow-radius=24 --shadow-opacity=0.225 --shadow-offset-x=-24 --shadow-offset-y=-24 \
46-
--shadow --no-dock-shadow --no-dnd-shadow \
44+
--shadow \
45+
--shadow-radius=24 \
46+
--shadow-opacity=0.225 \
47+
--shadow-offset-x=-24 \
48+
--shadow-offset-y=-24 \
4749
--fading \
4850
--fade-delta=8 \
4951
--no-fading-destroyed-argb \
5052
--xinerama-shadow-crop \
5153
--use-ewmh-active-win \
5254
--unredir-if-possible \
5355
--unredir-if-possible-exclude "class_g = 'Mate-screensaver'" \
54-
--shadow-exclude "! name~=''" \
55-
--shadow-exclude "name = 'Notification'" \
56-
--shadow-exclude "name = 'Docky'" \
56+
--fade-exclude "window_type *= 'menu'" \
57+
--shadow-exclude "window_type *= 'dnd'" \
58+
--shadow-exclude "window_type *= 'dock'" \
59+
--shadow-exclude "window_type *= 'notification'" \
5760
--shadow-exclude "class_g = 'albert'" \
61+
--shadow-exclude "class_g = 'Cairo-clock'" \
5862
--shadow-exclude "class_g = 'Conky'" \
59-
--shadow-exclude "class_g = 'Kupfer'" \
60-
--shadow-exclude "class_g = 'Plank'" \
63+
--shadow-exclude "class_g = 'Firefox' && argb" \
64+
--shadow-exclude "class_g ?= 'Notify-osd'" \
6165
--shadow-exclude "class_g = 'Synapse'" \
6266
--shadow-exclude "class_g = 'Ulauncher'" \
63-
--shadow-exclude "class_g ?= 'Notify-osd'" \
64-
--shadow-exclude "class_g ?= 'Cairo-dock'" \
65-
--shadow-exclude "class_g = 'Cairo-clock'" \
6667
--shadow-exclude "_GTK_FRAME_EXTENTS@:c" \
6768
--shadow-exclude "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" \
6869
--shadow-exclude "_NET_WM_STATE@:32a *= '_NET_WM_STATE_MAXIMIZED'"

0 commit comments

Comments
 (0)