summaryrefslogtreecommitdiff
path: root/.i3/scripts/xlock.sh
blob: cd5acc157d4ebbdfd247822da5eaaad0470d2ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

PNG=/tmp/screen_locked.png

scrot $PNG
convert $PNG -scale 5% -scale 2000% $PNG

killall -SIGUSR1 dunst # pause
i3lock --image=$PNG --nofork
killall -SIGUSR2 dunst # resume
rm -f $PNG