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 d52594b938b66723f1b3fedce58cd363efe6ac1d
parent 4ff00a6ebbfa5604b2bd3564d78f67aa2a6cab64
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 30 May 2019 17:43:05 +0200

Fix battery time display

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

diff --git a/.local/bin/sysstatus b/.local/bin/sysstatus @@ -12,7 +12,7 @@ batstatus=$(sed -n 's/Charging/+/;s/Discharging/-/' \ /sys/class/power_supply/${battery}/status | sed 's/Unknown//') batlvl=$(cat /sys/class/power_supply/${battery}/capacity) batremain=$(acpi -b | sed 1q |\ - sed -n 's/.*\([0-9][0-9]*:[0-9][0-9]\):[0-9][0-9].*/\1/') + sed -n 's/.*\([0-9][0-9]*:[0-9][0-9]\):[0-9][0-9].*$/\1/p') battery="$(echo "${batstatus}${batlvl}% ${batremain}" | sed 's/ $//')" wlanssid=$(iwgetid -r $wlandev) wlanquality=$(echo \