GegoXaren

lock.sh - Set pixleated backgropund for swaylock

May 26th, 2025 (edited)
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. ######
  3. # Get a pixleated background image for swaylock, using grimshot
  4. ######
  5. TMP_DIR=`mktemp -d`
  6. TMP_IMG=$TMP_DIR/input.png
  7.  
  8. grimshot save screen $TMP_IMG >> /dev/null
  9.  
  10. convert $TMP_IMG -scale 8% -scale 1250% $TMP_IMG
  11.  
  12. swaylock --image $TMP_IMG
  13.  
  14. rm -R $TMP_DIR
  15.  
Advertisement
Add Comment
Please, Sign In to add comment