diff --git a/swayidle-lock-screen b/swayidle-lock-screen new file mode 100755 index 0000000..8ed258a --- /dev/null +++ b/swayidle-lock-screen @@ -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