diff options
author | Soispha <soispha@vhack.eu> | 2024-02-20 20:07:37 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-02-20 20:07:37 +0100 |
commit | bd40926586e82e72c45d13fd58a96607bac137c6 (patch) | |
tree | 0be176b840eb969fd9fbe9cb58a6d65e0d06f8dc /hm/soispha/pkgs/scripts | |
parent | feat(hm/pkgs/battery): Init (diff) | |
download | nixos-config-bd40926586e82e72c45d13fd58a96607bac137c6.zip |
chore(version): v1.30.0
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/battery.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/battery.sh b/hm/soispha/pkgs/scripts/wrappers/battery.sh index b2446ac3..65485dff 100755 --- a/hm/soispha/pkgs/scripts/wrappers/battery.sh +++ b/hm/soispha/pkgs/scripts/wrappers/battery.sh @@ -3,7 +3,7 @@ # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="2.0.13" . %SHELL_LIBRARY_PATH -capacity="$(cat /sys/class/power_supply/BAT0/capacity)"; +capacity="$(cat /sys/class/power_supply/BAT0/capacity)" status="$(cat /sys/class/power_supply/BAT0/status)" printf "%s%% (%s)\n" "$capacity" "$status" |