feat: add battery percent padding

This commit is contained in:
Abhishek Keshri 2024-02-29 18:29:21 +05:30
parent 129a370ffd
commit 547fe8f6f1
No known key found for this signature in database

View file

@ -76,7 +76,7 @@ battery_status() {
;; ;;
CYGWIN* | MINGW32* | MSYS* | MINGW*) CYGWIN* | MINGW32* | MSYS* | MINGW*)
# leaving empty - TODO - windows compatability # leaving empty - TODO - windows compatibility
;; ;;
*) ;; *) ;;
@ -119,7 +119,7 @@ battery_label() {
main() { main() {
bat_stat=$(battery_status) bat_stat=$(battery_status)
bat_perc=$(battery_percent) bat_perc=" $(battery_percent)"
bat_label=$(get_tmux_option "@tmux2k-battery-label" "$(battery_label "$bat_perc")") bat_label=$(get_tmux_option "@tmux2k-battery-label" "$(battery_label "$bat_perc")")
if [ -z "$bat_stat" ]; then if [ -z "$bat_stat" ]; then