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 52b3e98eb8c9f473deb81d59a9098d83f6299cf5
parent 71c9602699d7b55cf94ef30c7ebcb3fc61b2a973
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 19 Dec 2018 17:55:36 +0100

Do not show blank parantheses

Diffstat:
Mlinks/.config/i3/i3scripts/i3battery | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/links/.config/i3/i3scripts/i3battery b/links/.config/i3/i3scripts/i3battery @@ -14,6 +14,7 @@ esac capacity=$(cat /sys/class/power_supply/"$1"/capacity) || exit status=$(cat /sys/class/power_supply/"$1"/status) time=" ($(acpi -b | egrep -o '[0-9][0-9]:[0-9][0-9]'))" +[ "$time" = " ()" ] && time="" if [ "$capacity" -ge 80 ]; then color="#b8bb26"