Skip to content

Instantly share code, notes, and snippets.

@Logiraptor
Created February 15, 2015 00:56
Show Gist options
  • Save Logiraptor/ef560032229e875202c0 to your computer and use it in GitHub Desktop.
Save Logiraptor/ef560032229e875202c0 to your computer and use it in GitHub Desktop.
lock script
#!/bin/bash
scrot /tmp/screen_locked.png
# convert /tmp/screen_locked.png -blur 0x6 /tmp/screen_locked.png
# convert /tmp/screen_locked.png -charcoal 5 /tmp/screen_locked.png
convert /tmp/screen_locked.png -blur 0x6 /tmp/screen_locked.png
i3lock -i /tmp/screen_locked.png
# Turn the screen off after a delay.
sleep 60; pgrep i3lock && xset dpms force off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment