dunst-project / dunst

Lightweight and customizable notification daemon
https://dunst-project.org
Other
4.42k stars 338 forks source link

Dunst wakes or stops my computer from sleeping suspending #1338

Closed WorldsEndless closed 2 months ago

WorldsEndless commented 2 months ago

I love Dunst, and for the most part it works great for me. One issue that I have with it is wmhen I press my sleep button on my laptop, though: Dunst will fire notifications that my wifi has gone offline and this interupts or supercedes the sleep operation, which then happily reports, "hey, we're awake and back online again!" This reminds me of my light-sleeping children…

This probably isn't technically a Dunst issue, but this seems like the best place to find others who have confronted the same issue. How can I get my machine to just sleep/suspend without Dunst waking it immediately?

$> dunst -v
Dunst - A customizable and lightweight notification-daemon 1.10.0 (2024-02-19)
bynect commented 2 months ago

Maybe you could try pausing the notifications when the pc goes into sleep and unpausing them later. Depending on what you use for sleep you should have a way to attach scripts before and after

WorldsEndless commented 2 months ago

What's the easiest way to pause Dunst? I'm sure this is a RTFM thing; maybe I can script it...

bynect commented 2 months ago

dunstctl set-paused true should do the trick

For more information see man dunstctl 👍🏻

WorldsEndless commented 2 months ago

that'll do it, I'm sure! Hopefully someone here benefits from this, as I had searched around everywhere

bynect commented 2 months ago

that'll do it, I'm sure! Hopefully someone here benefits from this, as I had searched around everywhere

If you have any other problem feel free to open another issue or reopen this 👍