aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/setbglblur
blob: 8a3d51b96fe0f52a07e94601753fd5a926686c36 (plain)
1
2
3
4
5
6
7
8
#!/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 -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