dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit a83459e0e82f63dbe784df24561e179b477a38bb
parent ec6082410361c35b8dc7497001cec6ec093550b7
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 21 Apr 2021 21:38:01 +0200

battery: bugfix double-printing on linux

Diffstat:
Mscripts/battery | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/scripts/battery b/scripts/battery @@ -5,7 +5,6 @@ case "$os" in if [ -f /sys/class/power_supply/BAT0/uevent ]; then state="$(awk -F '=' '/POWER_SUPPLY_STATUS/ {print $2}' /sys/class/power_supply/BAT0/uevent)" percent="$(awk -F '=' '/POWER_SUPPLY_CAPACITY=/ {print $2}' /sys/class/power_supply/BAT0/uevent)" - printf "%s\n%s" "$percent" "$state" else printf "No such file: /sys/class/power_supply/BAT0/uevent.\nNo other methods to find battery charge implemented.\n" >&2 exit 1