Skip to content

Instantly share code, notes, and snippets.

@shaiay
shaiay / screenlock.sh
Created September 23, 2015 19:16
a screen locker for use with xautolock which enables locking without password when connected to home wifi
#!/bin/sh
#
# example usage:
# xautolock -locker /full/path/to/screenlock.sh -corners 00-+ -detectsleep
#
# depends on xssstate which is part of suckless-tools:
# http://tools.suckless.org/ or
# apt-get suckless-tools on debian
#