Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: The battery percentage contains extra padding on left. #148

Open
mohityadav7 opened this issue Jan 29, 2022 · 2 comments
Open

Bug: The battery percentage contains extra padding on left. #148

mohityadav7 opened this issue Jan 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mohityadav7
Copy link

mohityadav7 commented Jan 29, 2022

Describe the bug

The battery percentage has some extra left padding which does not look good. And there is no icon or percentage sign which gives a hint about what the number represents.

To Reproduce

Steps to reproduce the behavior:

  1. Add battery plugin in .tmux.config. (Issue occurs regardless of powerline symbols being enabled or disabled)
  2. Observe the battery section in the status bar.

Expected behavior

I would like it to look better. I think if we could add a battery icon and fix padding, it will look better.

Screenshots

image
There is also some extra padding between the number and "AC" text when plugged in.
image

System

  • OS: Ubuntu 20.04 via WSL2 on Windows 11
  • Tmux Version: 3.0a
@mohityadav7 mohityadav7 added the bug Something isn't working label Jan 29, 2022
@klgsnd
Copy link

klgsnd commented Jul 30, 2022

I had the same issue. The reason we see padding is that the heart symbol is not printed. So I just tried to pull the recent commits and it fixed the issue. Try the same.

But if you need to really shrink the space between elements, then try to remove spaces between variables printed.
scripts/battery.sh:

...
118   if [ -z "$bat_stat" ]; then # Test if status is empty or not
119     echo "$bat_label$bat_perc"
120   elif [ -z "$bat_perc" ]; then # In case it is a desktop with no battery percent, only AC power
121     echo "$bat_label$bat_stat"
122   else
123     echo "$bat_label$bat_stat$bat_perc"

@Theoreticallyhugo
Copy link
Contributor

hey, #276 changed the appearance of the battery indicator.
with that change made and the following settings, you should hopefully get the experience youd like.
set -g @dracula-battery-label false
set -g @dracula-show-battery-status true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants