#!/bin/bash

revert() {
	xset dpms 0 0 0
}
trap revert HUP INT TERM

xset dpms 25 25 25

scrot /tmp/screen.png
convert /tmp/screen.png -scale 5% -scale 2000% /tmp/screen.png
i3lock -f -p win -i /tmp/screen.png
PID=$!

systemctl suspend

wait $PID

revert

