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

pkill -u "$USER" -USR1 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

pkill -u "$USER" -USR2 dunst