Created
August 2, 2014 18:00
-
-
Save ferki/32f8211af838fb592073 to your computer and use it in GitHub Desktop.
lockscreen
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 | |
#check if i3lock is already running | |
pgrep i3lock > /dev/null && exit 1 | |
#make screenshot | |
scrot ~/lockscreen.png | |
#apply blur | |
mogrify -filter Gaussian -resize 20% -define filter:sigma=1 -resize 500% ~/lockscreen.png | |
#mogrify -blur 0x8 ~/lockscreen.png | |
#switch to another workspace | |
#/usr/bin/i3-msg workspace lock | |
#lock screen | |
/usr/bin/i3lock -i ~/lockscreen.png | |
#delete screenshot | |
rm ~/lockscreen.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment