1 2 3 4 5 6 7 8 9
#!/bin/sh revert() { xset dpms 0 0 0 } trap revert SIGHUP SIGINT SIGTERM #xset +dpms dpms 5 5 5 xset dpms force off i3lock -n -c 111111 -I 5 revert