#!/bin/sh # Locks the screen with a blurred screenshot of the current window as the lock image # Also pauses any music that is playing maim | convert - -paint 5 ~/.cache/lock.png [ "$(cmus-remote -Q | head -1 | cut -d ' ' -f 2)" != "playing" ] || cmus-remote --pause i3lock -u -e -i ~/.cache/lock.png