#!/bin/sh -e # Take a screenshot #scrot -o /tmp/screen_locked.png # Pixellate it 10x #mogrify -scale 10% -scale 1000% /tmp/screen_locked.png # Lock screen displaying this image. i3lock# -i /tmp/screen_locked.png # Turn the screen off after a delay. sleep 60 # if i3lock is still running pgrep i3lock && xset dpms force off