aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/setbglblur
blob: 8de5e6fa161c80ce12d4b05c15aaf6e86981ba0f (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize))
horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth))

convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png -brightness-contrast -20,-20 -paint 1 -noise 0x8 -blur 9,9 ~/.config/lockwall.png
convert ~/.config/lockwall.png ~/.config/lock.png -gravity center -composite ~/.config/lockwall.png