Created
May 13, 2015 03:35
-
-
Save atelic/f806cf0896f82975eb3b to your computer and use it in GitHub Desktop.
Another i3lock script
This file contains hidden or 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
#!/usr/bin/env bash | |
icon="$HOME/path/to/lock.png" | |
tmpbg='/tmp/screen.png' | |
(( $# )) && { icon=$1; } | |
scrot "$tmpbg" | |
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" | |
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" | |
i3lock -u -i "$tmpbg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment