Created
March 24, 2016 17:50
-
-
Save j6s/94b98f6f60ce48d064a2 to your computer and use it in GitHub Desktop.
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/sh | |
FILE=/tmp/screen_lock.png; | |
# take screenshot | |
scrot $FILE; | |
# pixelate | |
mogrify -scale 10% -scale 1000% $FILE | |
# Lock | |
i3lock -i $FILE; | |
# turn off screen | |
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