add a configurable daemon that warns on low battery
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
60dd08fa27
commit
c7e0e3b656
7 changed files with 131 additions and 1 deletions
6
configs/default_hooks/battery
Normal file
6
configs/default_hooks/battery
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# This script is executed when sxmo_batterymonitor detects a battery capacity below the set threshold
|
||||
# You can use it to shutdown, play a notification sound, send a message, etc
|
||||
|
||||
mpv --no-video /usr/share/sxmo/notify.ogg >/dev/null && notify-send \"battery low\" && sxmo_vibratepine 1500 &
|
6
configs/default_hooks/battery_crit
Normal file
6
configs/default_hooks/battery_crit
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# This script is executed when sxmo_batterymonitor detects a battery capacity below the set threshold
|
||||
# You can use it to shutdown, play a notification sound, send a message, etc
|
||||
|
||||
sudo busybox poweroff
|
Loading…
Add table
Add a link
Reference in a new issue