diff --git a/swayidle-lock-screen b/swayidle-lock-screen index 5f8a04f..2406067 100755 --- a/swayidle-lock-screen +++ b/swayidle-lock-screen @@ -1,12 +1,14 @@ #!/usr/bin/env zsh function run { + dunstctl set-paused true swayidle -w -C /dev/null \ timeout 15 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' & local swayidle_pid="${!}" swaylock -e "${@}" kill "${swayidle_pid}" hyprctl dispatch dpms on + dunstctl set-paused false } local background=false