mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:54:35 +00:00
Don't auto-pause dunst notifications (causes issues)
This commit is contained in:
parent
190aa4f69b
commit
953589075e
|
@ -14,10 +14,9 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
lock_cmd = "hyprlock && dunstctl set-paused true";
|
lock_cmd = "hyprlock";
|
||||||
unlock_cmd = "killall -s SIGUSR1 hyprlock && dustctl set-paused false";
|
unlock_cmd = "killall -s SIGUSR1 hyprlock && dustctl set-paused false";
|
||||||
before_sleep_cmd = "loginctl lock-session && dunstctl set-paused true && sleep 2";
|
before_sleep_cmd = "loginctl lock-session && dunstctl set-paused true && sleep 2";
|
||||||
after_sleep_cmd = "dunstctl set-paused false";
|
|
||||||
ignore_dbus_inhibit = false;
|
ignore_dbus_inhibit = false;
|
||||||
ignore_systemd_inhibit = false;
|
ignore_systemd_inhibit = false;
|
||||||
};
|
};
|
||||||
|
@ -34,7 +33,8 @@ in {
|
||||||
# Lock the session & disable dunst notifications
|
# Lock the session & disable dunst notifications
|
||||||
{
|
{
|
||||||
timeout = 310;
|
timeout = 310;
|
||||||
on-timeout = "loginctl lock-session";
|
on-timeout = "loginctl lock-session && dunstctl set-paused true";
|
||||||
|
on-resume = "dunstctl set-paused false";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Turn off the screen after another 50s
|
# Turn off the screen after another 50s
|
||||||
|
|
Loading…
Reference in a new issue