diff options
author | George Abbott <george@gabbott.dev> | 2025-01-26 11:37:22 +0000 |
---|---|---|
committer | George Abbott <george@gabbott.dev> | 2025-01-26 11:37:22 +0000 |
commit | 82abadcecc7534b4847238ee2a977f33256b0439 (patch) | |
tree | ad8752c1dc9914829e80bc2f3f1a45dfec8f4b4a /scripts/sh/battery | |
parent | bac748dbe8c28cf1ed3b387b24f89ffe5a58ffc9 (diff) |
sh
Diffstat (limited to 'scripts/sh/battery')
-rwxr-xr-x | scripts/sh/battery | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/sh/battery b/scripts/sh/battery new file mode 100755 index 0000000..b253445 --- /dev/null +++ b/scripts/sh/battery @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "First:" "$(cat /sys/class/power_supply/BAT0/capacity)%" +echo "Second:" "$(cat /sys/class/power_supply/BAT1/capacity)%" |