19 lines
468 B
Bash
Executable file
19 lines
468 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# i stole this from lukesmithxyz
|
|
|
|
# yay scrot time
|
|
rm /tmp/lockscreen.png
|
|
scrot /tmp/lockscreen.png
|
|
|
|
# imagemagik is fun
|
|
#convert /tmp/lockscreen.png -paint 1 ~/.i3/lock.png -gravity center -composite -matte /tmp/lockscreen.png
|
|
#convert /tmp/lockscreen.png -paint 1 -blur 8x5 ~/.i3/lock.png -gravity center -composite -matte /tmp/lockscreen.png
|
|
|
|
# hmm i3lock
|
|
i3lock -e -f -c 000000 -i /tmp/lockscreen.png
|
|
|
|
while [[ $(pgrep -x i3lock) ]]; do
|
|
sleep 5
|
|
done
|