#!/bin/sh # /etc/apm/suspend # lock screen on suspend doas -u meutel env DISPLAY=:0 XAUTHORITY=/home/meutel/.Xauthority xlock -mode blank & logger /etc/apm/suspend lock screen $?