aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-05-10 03:41:02 +0300
committerYaroslav <contact@yaroslavps.com>2020-05-10 03:41:02 +0300
commit9fb32732d8dd01480276d4dec04258bef081d1b4 (patch)
tree8ca2d74d1788c1692ac979d93efee53bc161be1a /dotfiles/.local/bin
parentc27a5efd2a7f43bd2f3c0a9f6606f332576cff1e (diff)
downloadswayrice-9fb32732d8dd01480276d4dec04258bef081d1b4.tar.gz
swayrice-9fb32732d8dd01480276d4dec04258bef081d1b4.zip
bg scripts improvements
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-xdotfiles/.local/bin/setbglblur3
-rwxr-xr-xdotfiles/.local/bin/setbglsimple3
2 files changed, 4 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/setbglblur b/dotfiles/.local/bin/setbglblur
index b0c55bc..2618702 100755
--- a/dotfiles/.local/bin/setbglblur
+++ b/dotfiles/.local/bin/setbglblur
@@ -5,7 +5,8 @@ horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
scale=$(swaymsg -t get_outputs | jq ".[0].scale")
barheight=$(echo ""$scale" * 27" | bc -l)
-convert $1 -resize "$horizontal"x"$vertical" ~/.config/lockwall.png
+convert "$1" -resize "$horizontal"x"$vertical"^ -gravity center \
+ -extent "$horizontal"x"$vertical" ~/.config/lockwall.png
convert ~/.config/lockwall.png \
-brightness-contrast -20,-20 \
-paint 1 \
diff --git a/dotfiles/.local/bin/setbglsimple b/dotfiles/.local/bin/setbglsimple
index 28869cd..f48dd7e 100755
--- a/dotfiles/.local/bin/setbglsimple
+++ b/dotfiles/.local/bin/setbglsimple
@@ -5,7 +5,8 @@ horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
scale=$(swaymsg -t get_outputs | jq ".[0].scale")
barheight=$(echo ""$scale" * 27" | bc -l)
-convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
+convert "$1" -resize "$horizontal"x"$vertical"^ -gravity center \
+ -extent "$horizontal"x"$vertical" ~/.config/lockwall.png
convert ~/.config/lockwall.png \
-background "#00000000" \
-gravity North \