From 9b2cadc8e1e0873757cf8119a1c6b388f752ccb5 Mon Sep 17 00:00:00 2001 From: Andrew Lechowicz Date: Sat, 16 Oct 2021 20:29:28 -0400 Subject: [PATCH] Add battery icon option --- scripts/battery.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/battery.sh b/scripts/battery.sh index 24012fa..c9d96d7 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -108,15 +108,16 @@ battery_status() main() { + bat_label=$(get_tmux_option "@dracula-battery-label" "♥") bat_stat=$(battery_status) bat_perc=$(battery_percent) if [ -z "$bat_stat" ]; then # Test if status is empty or not - echo "♥ $bat_perc" + echo "$bat_label $bat_perc" elif [ -z "$bat_perc" ]; then # In case it is a desktop with no battery percent, only AC power - echo "♥ $bat_stat" + echo "$bat_label $bat_stat" else - echo "♥ $bat_stat $bat_perc" + echo "$bat_label $bat_stat $bat_perc" fi }