1 parent f591ea8 commit 33e4597Copy full SHA for 33e4597
1 file changed
battery
@@ -1,4 +1,6 @@
1
#!/bin/bash
2
+# add to crontab
3
+# */2 * * * * /usr/bin/battery
4
5
DIR="/sys/class/power_supply/BAT0"
6
STATUS=$(cat "$DIR/status")
0 commit comments