mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 20:20:41 +00:00
Inhibit swaync when session is locked
This commit is contained in:
parent
c8d1e94c0f
commit
ffd352074f
5 changed files with 29 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
|
||||
|
||||
general {
|
||||
unlock-cmd = killall -s SIGUSR1 hyprlock && dunstctl set-paused false
|
||||
before_sleep_cmd = loginctl lock-session && dunstctl set-paused true && sleep 2
|
||||
unlock-cmd = killall -s SIGUSR1 hyprlock
|
||||
before_sleep_cmd = loginctl lock-session
|
||||
ignore_dbus_inhibit = false
|
||||
ignore_systemd_inhibit = false;
|
||||
}
|
||||
|
@ -10,16 +10,15 @@ general {
|
|||
# Warn about going idle (5 mins)
|
||||
listener {
|
||||
timeout = 300
|
||||
# use hyprland notifications, in case dunst notifs are paused or whatever
|
||||
# use hyprland notifications, in case regular notifs are paused or whatever
|
||||
on-timeout = hyprctl notify 0 10000 "rgb(ff0000)" "fontsize:20 System going idle in 10 seconds..."
|
||||
on-resume = hyprctl dismissnotify 1
|
||||
}
|
||||
|
||||
# Lock the session & disable dunst notifications
|
||||
# Lock the session
|
||||
listener {
|
||||
timeout = 310
|
||||
on-timeout = loginctl lock-session && dunstctl set-paused true
|
||||
on-resume = dunstctl set-paused false
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
|
||||
# Turn off the screen after another 50s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue