Update swayidle-lock-screen
This commit is contained in:
parent
7a4643a25e
commit
5c497e5390
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user