summaryrefslogtreecommitdiff
path: root/scripts/sh/battery
diff options
context:
space:
mode:
authorGeorge Abbott <george@gabbott.dev>2025-01-26 11:37:22 +0000
committerGeorge Abbott <george@gabbott.dev>2025-01-26 11:37:22 +0000
commit82abadcecc7534b4847238ee2a977f33256b0439 (patch)
treead8752c1dc9914829e80bc2f3f1a45dfec8f4b4a /scripts/sh/battery
parentbac748dbe8c28cf1ed3b387b24f89ffe5a58ffc9 (diff)
sh
Diffstat (limited to 'scripts/sh/battery')
-rwxr-xr-xscripts/sh/battery4
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)%"