dotfiles/.scripts/sway/idle.sh~

4 lines
178 B
Bash

#!/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'