#!/usr/bin/env bash icon="$HOME/.config/i3/icons/lock.png" tmpbg='/tmp/screen.png' (( $# )) && { icon=$1; } scrot "$tmpbg" convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg" convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg" i3lock -f -i "$tmpbg"