summaryrefslogtreecommitdiffstats
path: root/.local/bin/lock
blob: 37274caf0bec97b128fbeaebd67b0e41dd132244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

killall -SIGUSR1 dunst
sleep 1

scrot -zo /tmp/screen-lock.png

mogrify -scale 5% -scale 2000% /tmp/screen-lock.png
mogrify -modulate 100,300 /tmp/screen-lock.png

i3lock -n -i /tmp/screen-lock.png

killall -SIGUSR2 dunst