dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 7edf58336f33c9a9adbe2b4476865b707ab6126f
parent 0adae5910ff8c0e1458359fe4b4357be8ffa409e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 21 May 2019 16:22:11 +0200

Show first battery status

Diffstat:
M.local/bin/sysstatus | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/sysstatus b/.local/bin/sysstatus @@ -11,7 +11,7 @@ cpuload=$(cut -d' ' -f1 /proc/loadavg) batstatus=$(sed 's/Charging/+/;s/Discharging/-/' \ /sys/class/power_supply/${battery}/status) batlvl=$(cat /sys/class/power_supply/${battery}/capacity) -batremain=$(acpi -b | sed 's/.*\([0-9][0-9]*:[0-9][0-9]\):[0-9][0-9].*/\1/') +batremain=$(acpi -b | sed 1q | sed 's/.*\([0-9][0-9]*:[0-9][0-9]\):[0-9][0-9].*/\1/') wlanssid=$(iwgetid -r $wlandev) wlanquality=$(echo \ "0$(grep $wlandev /proc/net/wireless | awk '{print $3}')/70 * 100" |\