Skip to content

Instantly share code, notes, and snippets.

View JoshuaJChan's full-sized avatar

Joshua Chan JoshuaJChan

  • ON, Canada
View GitHub Profile
@rduplain
rduplain / xscreensaver-watch.sh
Created October 8, 2012 15:02
Watch xscreensaver lock/unlock events and act on them.
#!/bin/sh
# Watch xscreensaver and react to status changes.
#
# Replaced my previous perl-based recipe with this:
# http://semicomplete.googlecode.com/svn/tools/xscreensaver-watch.sh
#
# Include somewhere in X session startup with:
#
# xscreensaver-watch &