Created
February 15, 2015 00:56
-
-
Save Logiraptor/ef560032229e875202c0 to your computer and use it in GitHub Desktop.
lock script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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