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 1e20f10e1db76625bdf60cc728a4455141c3c94b
parent 23db4798e0958e48af1097d45574ff021b2dd0a7
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 23 Sep 2019 08:45:00 +0200

Only show battery status if there is a battery

Diffstat:
M.local/bin/sysstatus | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.local/bin/sysstatus b/.local/bin/sysstatus @@ -22,7 +22,8 @@ wlanquality=$(echo \ bc -l | sed 's/\..*$//') date=$(date +'%F %a %T') -status="${mail}${music} ${keymap} | ♪ ${vol}% | ${cputemp} ${cpuload} |\ - ${battery} | ${wlanssid} ${wlanquality}% | $date" +status="${mail}${music} ${keymap} | ♪ ${vol}% | ${cputemp} ${cpuload}" +[ ! "$battery" = "BAT0" ] && status="${status} | ${battery}" +status="${status} | ${wlanssid} ${wlanquality}% | $date" printf "%s" "$status"