@@ -36,10 +36,10 @@ get_icon_settings() {
36
36
charged_icon=$( get_tmux_option " @batt_charged_icon" " $( charged_default) " )
37
37
charging_icon=$( get_tmux_option " @batt_charging_icon" " $charging_default " )
38
38
attached_icon=$( get_tmux_option " @batt_attached_icon" " $attached_default " )
39
- full_charge_icon=$( get_tmux_option " @batt_full_charge_icon" " $full_charge_icon_default " )
40
- high_charge_icon=$( get_tmux_option " @batt_high_charge_icon" " $high_charge_icon_default " )
41
- medium_charge_icon=$( get_tmux_option " @batt_medium_charge_icon" " $medium_charge_icon_default " )
42
- low_charge_icon=$( get_tmux_option " @batt_low_charge_icon" " $low_charge_icon_default " )
39
+ full_charge_icon=$( get_tmux_option " @batt_full_charge_icon" " $full_charge_icon_default " )
40
+ high_charge_icon=$( get_tmux_option " @batt_high_charge_icon" " $high_charge_icon_default " )
41
+ medium_charge_icon=$( get_tmux_option " @batt_medium_charge_icon" " $medium_charge_icon_default " )
42
+ low_charge_icon=$( get_tmux_option " @batt_low_charge_icon" " $low_charge_icon_default " )
43
43
}
44
44
45
45
print_icon () {
@@ -52,15 +52,15 @@ print_icon() {
52
52
# use code from the bg color
53
53
percentage=$( $CURRENT_DIR /battery_percentage.sh | sed -e ' s/%//' )
54
54
if [ $percentage -eq 100 ]; then
55
- printf $full_charge_icon
55
+ printf " $full_charge_icon "
56
56
elif [ $percentage -le 99 -a $percentage -ge 51 ]; then
57
- printf $high_charge_icon
57
+ printf " $high_charge_icon "
58
58
elif [ $percentage -le 50 -a $percentage -ge 16 ]; then
59
- printf $medium_charge_icon
59
+ printf " $medium_charge_icon "
60
60
elif [ " $percentage " == " " ]; then
61
- printf $full_charge_icon_default # assume it's a desktop
61
+ printf " $full_charge_icon_default " # assume it's a desktop
62
62
else
63
- printf $low_charge_icon
63
+ printf " $low_charge_icon "
64
64
fi
65
65
elif [[ $status =~ (attached) ]]; then
66
66
printf " $attached_icon "
0 commit comments