config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 139046e40d438324d3efbd2c8b7c7e610dc5f4bb
parent a155a4a2030407fea1e380e63d45dadb3ee7e682
Author: dwrz <dwrz@dwrz.net>
Date:   Tue,  1 Oct 2024 14:36:58 +0000

Fix check battery script

Diffstat:
Mscripts/check-battery | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/check-battery b/scripts/check-battery @@ -2,7 +2,7 @@ readonly CAPACITY="$(cat /sys/class/power_supply/BAT0/capacity)" -if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Discharging" ]; then +if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ]; then exit 0 fi