Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- ######
- # Get a pixleated background image for swaylock, using grimshot
- ######
- TMP_DIR=`mktemp -d`
- TMP_IMG=$TMP_DIR/input.png
- grimshot save screen $TMP_IMG >> /dev/null
- convert $TMP_IMG -scale 8% -scale 1250% $TMP_IMG
- swaylock --image $TMP_IMG
- rm -R $TMP_DIR
Advertisement
Add Comment
Please, Sign In to add comment