aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/setbglsimple
blob: 51ac5bae8e3f402e6bb8d165a95efb5b995ba78b (plain)
1
2
3
4
5
6
7
#!/bin/sh

vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")

convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png ~/.config/lock.png -gravity center -composite ~/.config/lockwall.png