aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/setbglblur
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-07 13:29:53 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-07 13:29:53 +0300
commit916163d1b7cb06438aa3c0285c515061d0480dd0 (patch)
tree9235d7f50afbdac6651cf4876996c057de1a55b8 /dotfiles/.local/bin/setbglblur
parentb275593ce8e1ea60947cc08ef6a5c70f969cb3cd (diff)
downloadswayrice-916163d1b7cb06438aa3c0285c515061d0480dd0.tar.gz
swayrice-916163d1b7cb06438aa3c0285c515061d0480dd0.zip
setbglblur: avoid changing alpha channel
Diffstat (limited to 'dotfiles/.local/bin/setbglblur')
-rwxr-xr-xdotfiles/.local/bin/setbglblur2
1 files changed, 2 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/setbglblur b/dotfiles/.local/bin/setbglblur
index 2618702..c187ba3 100755
--- a/dotfiles/.local/bin/setbglblur
+++ b/dotfiles/.local/bin/setbglblur
@@ -8,7 +8,9 @@ barheight=$(echo ""$scale" * 27" | bc -l)
convert "$1" -resize "$horizontal"x"$vertical"^ -gravity center \
-extent "$horizontal"x"$vertical" ~/.config/lockwall.png
convert ~/.config/lockwall.png \
+ -channel rgb \
-brightness-contrast -20,-20 \
+ +channel \
-paint 1 \
-noise 0x8 \
-blur 9,9 \