Created
May 26, 2017 06:11
-
-
Save nrktkt/8611cdd540f34d2388a54b8cd2194b67 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
#!/usr/bin/env bash | |
icon="$HOME/.xlock/icon.png" | |
tmpbg='/tmp/screen.png' | |
(( $# )) && { icon=$1; } | |
scrot "$tmpbg" | |
convert "$tmpbg" -scale 5% -scale 2000% "$tmpbg" | |
# convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" | |
i3lock -i "$tmpbg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment