From 82abadcecc7534b4847238ee2a977f33256b0439 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Sun, 26 Jan 2025 11:37:22 +0000 Subject: sh --- scripts/sh/battery | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/sh/battery (limited to 'scripts/sh/battery') 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)%" -- cgit v1.2.1