Skip to content

Instantly share code, notes, and snippets.

@ckoepp
Created January 1, 2018 11:27
Show Gist options
  • Select an option

  • Save ckoepp/7584a711143f8a3047f1f0e0708f40f5 to your computer and use it in GitHub Desktop.

Select an option

Save ckoepp/7584a711143f8a3047f1f0e0708f40f5 to your computer and use it in GitHub Desktop.
custom wrapper for i3lock with blurry screenshot
#!/bin/bash
TEMP_DIR=$(mktemp -d)
ORIG_SCREENSHOT_PATH="$TEMP_DIR/orig.png"
import -window root -display :0 $ORIG_SCREENSHOT_PATH
convert $ORIG_SCREENSHOT_PATH -filter Gaussian -resize 50% -define filter:sigma=1.6 -resize 200% $ORIG_SCREENSHOT_PATH
i3lock -i $ORIG_SCREENSHOT_PATH -t -f -e -p win -c 000000
rm -rf $TEMP_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment