#!/bin/sh BACKS="/usr/share/backgrounds" # Set pidgin to offline purple-remote 'setstatus?status=offline' # Run lock in background and when unlocked switch pidgin back to online nohup /bin/sh -ec " i3lock -n -c 000000 -i $(shuf -n1 -e "$BACKS"/*) purple-remote 'setstatus?status=available' " >/dev/null 2>&1 & # Power off screen xset dpms force off