Added swayidle-lock-scren

This commit is contained in:
Alexander Rosenberg 2023-09-10 03:11:44 -07:00
parent b8cca56710
commit dc331da167
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

8
swayidle-lock-screen Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
swayidle -d -w -C /dev/null \
timeout 15 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' &
local swayidle_pid="$!"
swaylock
kill "${swayidle_pid}"
hyprctl dispatch dpms on