diff options
Diffstat (limited to 'bashs/shell scrips/bat32')
| -rwxr-xr-x | bashs/shell scrips/bat32 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bashs/shell scrips/bat32 b/bashs/shell scrips/bat32 new file mode 100755 index 0000000..382e207 --- /dev/null +++ b/bashs/shell scrips/bat32 @@ -0,0 +1,6 @@ +#!/bin/sh +touch /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/capacity > /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/status > /tmp/powerc +value=$(</tmp/powerc) +echo "Mou$value"% |
