From 49f212207e05cf06f19598cbfc61d6c71e681f6b Mon Sep 17 00:00:00 2001 From: Pholawat <82935610+pholawat-tle@users.noreply.github.com> Date: Wed, 11 May 2022 15:53:37 +0700 Subject: [PATCH 1/2] import utils.sh in battery.sh --- scripts/battery.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/battery.sh b/scripts/battery.sh index c9d96d7..65211bf 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -2,6 +2,9 @@ # setting the locale, some users have issues with different locales, this forces the correct one export LC_ALL=en_US.UTF-8 +current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $current_dir/utils.sh + linux_acpi() { arg=$1 BAT=$(ls -d /sys/class/power_supply/BAT* | head -1) From 95d3aa81448894b1806905c98ef36f1974380e52 Mon Sep 17 00:00:00 2001 From: Pholawat <82935610+pholawat-tle@users.noreply.github.com> Date: Wed, 11 May 2022 15:58:58 +0700 Subject: [PATCH 2/2] include @dracula-battery-label option in INSTALL.md --- INSTALL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index e9d092b..f62a08d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -128,6 +128,14 @@ set -g @dracula-cpu-display-load true CPU usage percentage (default) - in percentage (output: %) Load average – is the average system load calculated over a given period of time of 1, 5 and 15 minutes (output: x.x x.x x.x) +#### battery options + +Customize label + +```bash +set -g @dracula-battery-label "Battery" +``` + #### gpu-usage options Customize label