Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 762 Bytes

File metadata and controls

26 lines (21 loc) · 762 Bytes

BatteryLow

BatteryLow CHARGE!

For using BatteryLow simply add trigger.sh to your startup applications or autostart.

Example. I am using WindowMaker which has autostart file. When I type

startx

after login, the window manager will be executed, and my autostart file will work at that moment. So I put THIS code

exec /PATH/TO/TRIGGER.SH &

to my autostart or startup applications with (&) for it work in the background.

And don't forget to change the PATH in trigger.sh . (path to batterylow.sh)

Also you can change the number of when the battery is low from that number POPUP. (in batterlow.sh). In this line ->

if [ "$(($BATTERY))" -lt "30" ] && [[ $ACPI == *"$DISCHARGING"* ]]; then

I have put the number 30. Thanks for using :)