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 5daa39b7f6c42f6aea7ef7785e0793c848fb364f
parent 424a03e944d4d8ac361e9eb2989f01084b5b0f93
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 20 Dec 2018 13:58:08 +0100

Hide 0W power draw

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 @@ -16,6 +16,7 @@ status=$(cat /sys/class/power_supply/"$1"/status) time=" ($(acpi -b | egrep -o '[0-9][0-9]:[0-9][0-9]'))" [ "$time" = " ()" ] && time="" powerdraw=" $(( $(cat /sys/class/power_supply/"$1"/power_now)/1000000 ))W" +[[ "$powerdraw" = " 0W" ]] && powerdraw="" if [ "$capacity" -ge 80 ]; then color="#b8bb26"