#!/bin/sh -e # # Show a pixelated screenshot as background image of i3lock # # See # Copied from # screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" scrot -o "$screenshot" case $1 in "37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot" ;; *) mogrify -scale 10% -scale 1000% "$screenshot" ;; esac exec i3lock -i "$screenshot"