#!/bin/bash swayidle -w timeout 300 'sh /usr/local/bin/lock' timeout 360 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'sh /usr/local/bin/lock'