Skip to content

Instantly share code, notes, and snippets.

@willawill

willawill/lockit.sh

Forked from quad/lockit.sh
Created Aug 21, 2012
Embed
What would you like to do?
Achtung: a not very nice hotdog
#!/bin/sh
#
# We have a few repeat customers here at the TWU 27 hotdog shack.
#
# They've decided it's FUN to visit our stand.
#
# So, we've cooked up something a little special for our valued customers.
set -e
osascript -e "set Volume 10"
say <<EOF
ATTENTION!
ATTENTION!
ATTENTION!
It was my responsibility to lock my computer when I was away.
But I didn't.
I could not even set my computer to automatically lock.
EOF
while ((1)); do
say "OBVIOUSLY I HAVE MADE MISTAKES"
# Invert the screen's colours.
osascript <<-EOF
tell application "System Events"
tell application processes
key code 28 using {command down, option down, control down}
end tell
end tell
EOF
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment