dotfiles/.local/bin/scripts/lock_script

7 lines
167 B
Text
Raw Normal View History

#!/bin/bash
swayidle -w \
timeout 1 'swaylock -f -c 000000' \
timeout 2 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"; pkill -USR1 swayidle'