1#!/usr/bin/env bash 2 3lockfile=/tmp/screen-off-lock 4 5if [ -f $lockfile ]; 6then 7 rm "$lockfile" 8 @wmmsg@ "output * enable" 9 @wmmsg@ "output * dpms on" 10else 11 touch "$lockfile" 12 @wmmsg@ "output * dpms off" 13fi 14