Toqozz / wired-notify

Lightweight notification daemon with highly customizable layout blocks, written in Rust.
MIT License
608 stars 28 forks source link

Add cli command to pause/resume notifications #80

Closed lukelex closed 2 years ago

lukelex commented 2 years ago

I've run into the scenario where I'd like to instruct Wired to pause and resume notifications during specific periods of the day.

I already have the means to run other scripts on such occasions, and It'd be great to have a wired pause & wired resume feature on the CLI.

Toqozz commented 2 years ago

Cool, shouldn't be too difficult.

To be clear, do you want Wired to just effectively silence notifications while paused, so nothing shows? As opposed to the other pause behaviour that currently exists where the notification will just sit there.

If the former, how should Wired respond when being resumed -- do we display all the notifications you "missed"? Could be hundreds!

lukelex commented 2 years ago

Either would work, but I'd prefer it not to show anything, as I can use print_to_file to retrieve what I've missed.

Toqozz commented 2 years ago

Available in master:

wired --dnd on / wired --dnd off.

lukelex commented 2 years ago

image