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

battery_daemon help #22

Closed
BassMatt opened this issue Mar 29, 2019 · 5 comments
Closed

battery_daemon help #22

BassMatt opened this issue Mar 29, 2019 · 5 comments

Comments

@BassMatt
Copy link

BassMatt commented Mar 29, 2019

Hi,

I've noticed in your .zshrc there's a line for run battery_daemon, but no notifications are appearing on my system for when I get to low battery levels.

I found this script which seems to accomplish the intended purpose, but I was curious what you're using here?

@elenapan
Copy link
Owner

elenapan commented Mar 30, 2019

It was my own script that basically just checked the battery level every 30 seconds in a while loop, making sure to notify only once for low and critical status. However it was not very reliable (sometimes it didn't send any notifications for some reason) so I switched to xfce4-power-manager until I figure out a better solution.

I will probably implement this within Awesome itself, since my battery widget already periodically checks battery level.

@BassMatt
Copy link
Author

BassMatt commented Apr 9, 2019

Does xfce4-power-manager send you notifications and such?

@elenapan
Copy link
Owner

elenapan commented Apr 9, 2019

Yeah it sends them on plug/unplug/full/low/critical.

@mustaqimM
Copy link
Contributor

Here's a better way that uses dbus signals, so you get notified almost instantly:
https://github.com/lexa/awesome_upower_battery

@elenapan
Copy link
Owner

Ended up implementing it within Awesome with acpi_listen for instant notifications and by checking battery level every 30 seconds for low/critical/full notifications.

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

3 participants