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

[wayland] [mako] limit notification to one for a given level #24

Open
ilan-schemoul opened this issue Oct 23, 2022 · 5 comments
Open

[wayland] [mako] limit notification to one for a given level #24

ilan-schemoul opened this issue Oct 23, 2022 · 5 comments

Comments

@ilan-schemoul
Copy link

Hello,
Is it possible to only shows one time a given message (e.g : you have 18% left) instead of having tens of notifcation during all the time I have a given percent (e.g : I have set the critical level to 18% I want to have one notifiation for 18% not 1 per second during all the time my computer has 18%)
I use wayland with mako to shows notification

@electrickite
Copy link
Owner

batsignal should not perform a battery check or send notification more that once per the minimum interval set by the multiplier option (by default 60 seconds). Are you seeing notifications every second without setting the multiplier option?

The current intended behavior of the critical level is indeed to create new notifications once every interval. The critical level represents the battery level at which immediate action must be taken by the user (i.e. to avoid automatic system shutdown). The warning level does work as you describe, and only shows a single notification when the system crosses the warning level threshold.

@ilan-schemoul
Copy link
Author

It is not every minute but more like every 1 or 2 seconds. This issue did not happen when I was using X11 it's specific to wayland

@electrickite
Copy link
Owner

Interesting - batsignal has no graphical functionality, so the window manager should not matter. Can you post the batsignal command you are using, along with your Mako config?

@ilan-schemoul
Copy link
Author

ilan-schemoul commented Oct 25, 2022

In my sway

exec --no-startup-id batsignal -w 25 -c 18 -d 13 -f 0 -b
exec --no-startup-id mako

No further config
I'm using arch linux by the way

@electrickite
Copy link
Owner

@ilan-schemoul Version 1.7.0 adds support for closing notifications and using only one notification at a time for batsignal. Does this resolve the issue?

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

2 participants