1 2 3 4 5
#!/bin/sh if pidof i3lock &> /dev/null; then exit 1; fi xset dpms force off exec i3lock -d -c 000000