Making a low battery Alert

Hello, i am new in bspwm and i using in a notebook.
I love this desktop enviorment,
but i have de battery icon in polybar, now how can i make an alert that notify me that battery is low or is full?.
Thanks,

Hi. Does the notify-send command work on bspwm?

yes, works

?

1 Like

Then you might want to have a look at https://github.com/rhz/sd-battery-notification. It’s a systemd timer that checks the battery charge every minute and notifies the user when the battery is too low or too high. By default, it notifies when the battery is below 40% or over 80%.

There is a script for that bundled with BSPWM the one @joekamprad linked.

I have a problem with this script

Thk a lot, this works, i only had to install bc with paru.
Thks is resolved :smiley:

1 Like

I didn’t realize there was a script in the repo for such monitoring.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.