Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notification inhibition #278

Closed
cherti opened this issue Jun 17, 2020 · 13 comments
Closed

Add notification inhibition #278

cherti opened this issue Jun 17, 2020 · 13 comments

Comments

@cherti
Copy link

cherti commented Jun 17, 2020

Sometime one does not want to be disturbed by notifications, for example when concentrating on a task. As mako is dbus-activated, notifications cannot be suppressed by disabling it As still software might try to send notifications, it would be useful to have a feature to inhibit notifications for a given amount of time.

Exemplary syntax: makoctl inhibit <duration> with duration either being seconds or possibly sth. more sophisticated like a timestring (1h, 30m, 30s), if that is easy to implement.

@cherti cherti changed the title Add inhibition timeout Add notification inhibition Jun 17, 2020
@emersion
Copy link
Owner

See also #138

@tukusejssirs
Copy link

Just a sidenote: I would call this Do Not Disturb (DND), just like GNOME 3 and Android calls this. 😃

@maximbaz
Copy link
Contributor

There is a simple way to achieve notification inhibition today: makoctl set invisible=true and makoctl set invisible=false.

@cherti
Copy link
Author

cherti commented Jul 23, 2020

The interesting question is: do we expect to have inhibited notifications stream in once the inhibition has timed out?

@maximbaz
Copy link
Contributor

I think you can achieve both, if you want to preserve those notifications, just use makoctl set invisible=false, if you want to clear them, perhaps just restart mako process instead.

@emersion
Copy link
Owner

You can makoctl dismiss -a to dismiss all notifications.

@lokesh-krishna
Copy link

There is a simple way to achieve notification inhibition today: makoctl set invisible=true and makoctl set invisible=false.

Running this on the latest release gives me makoctl: unrecognized command 'set'.

@fluix-dev
Copy link
Contributor

latest release

That's because the latest release doesn't contain #218, you'll have to run master until the next one.

@badosu
Copy link

badosu commented Dec 14, 2020

Running on master makoctl set invisible=true is not working.

I'm attempting to make a waybar module for it, would be nice to be able to makoctl get invisible so I can display its current status.

@fluix-dev
Copy link
Contributor

... is not working

Perhaps it's because of the caveat pointed out by this comment? Otherwise, report a bug.

@emersion
Copy link
Owner

emersion commented Mar 10, 2021

makoctl set has now been removed from master, it caused tricky issues. The new plan is #335.

@David96
Copy link

David96 commented Mar 15, 2021

In case it is useful for someone:
my current way of disabling notifications is to have the following service file under ~/.local/share/dbus-1/services/fr.emersion.mako.service:

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=
SystemdService=

Having that disables the dbus activation of mako - to enable notifications I rename it, to disable them again I rename it back and killall mako.

@emersion
Copy link
Owner

Closing as a duplicate of #335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants