summaryrefslogtreecommitdiffstats
path: root/.local/bin/lock
blob: e3745e8b0cfb917c36a1c7b32931f554d766b85c (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,100,30 /tmp/screen-lock.png

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

killall -SIGUSR2 dunst