Skip to content

Commit 78b661b

Browse files
committed
set effect to invert if not set
1 parent 0ac0b0f commit 78b661b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

wallutils.sh

+7
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ compwallpaper() {
142142
instantoverlay
143143
imgresize overlay.png "$RESOLUTION"
144144

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+
145151
# perpare effect settings
146152
iconf logoeffects | grep swirl && EFFECTS+=("-swirl" "360")
147153
iconf logoeffects | grep flip && EFFECTS+=("-flip")
@@ -152,6 +158,7 @@ compwallpaper() {
152158
iconf logoeffects | grep dim && EFFECTS+=("-modulate" "50")
153159
iconf logoeffects | grep brighten | grep -v dim && EFFECTS+=("-modulate" "150")
154160

161+
# apply effects
155162
convert wall.png "${EFFECTS[@]}" effect.png
156163

157164
# create mask from overlay

0 commit comments

Comments
 (0)