aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/setbglsimple
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin/setbglsimple')
-rwxr-xr-xdotfiles/.local/bin/setbglsimple3
1 files changed, 2 insertions, 1 deletions
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 \