Commit 78b661b 1 parent 0ac0b0f commit 78b661b Copy full SHA for 78b661b
File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,12 @@ compwallpaper() {
142
142
instantoverlay
143
143
imgresize overlay.png " $RESOLUTION "
144
144
145
+ # set to invert if logoeffects is not set or broken
146
+ iconf logoeffects |
147
+ grep -E ' brighten|dim|contrast|grayscale|invert|blur|flip|swirl' ||
148
+ iconf logoeffects ' invert'
149
+
150
+
145
151
# perpare effect settings
146
152
iconf logoeffects | grep swirl && EFFECTS+=(" -swirl" " 360" )
147
153
iconf logoeffects | grep flip && EFFECTS+=(" -flip" )
@@ -152,6 +158,7 @@ compwallpaper() {
152
158
iconf logoeffects | grep dim && EFFECTS+=(" -modulate" " 50" )
153
159
iconf logoeffects | grep brighten | grep -v dim && EFFECTS+=(" -modulate" " 150" )
154
160
161
+ # apply effects
155
162
convert wall.png " ${EFFECTS[@]} " effect.png
156
163
157
164
# create mask from overlay
You can’t perform that action at this time.
0 commit comments