Giter Club home page Giter Club logo

Comments (5)

martinbeentjes avatar martinbeentjes commented on July 25, 2024

Can you provide a screenshot, and did you do anything to the contents of the @batt_xxx_icon variables?

Does your terminal application support the emoji characters?

from tmux-battery.

vass-david avatar vass-david commented on July 25, 2024

Ok. I'm an idiot. README says that there is no icon when discharging. Manually setting the icons to custom ones worked perfectly, but then after I removed them realising there should be no icon while discharging, I've removed them but they was still there after sourcing tmux.conf or restarting tmux. So the final solution was to manually add them in config file. BTW there should be a discharging icon anyway. Never-mind. Forget I reported something :D

from tmux-battery.

martinbeentjes avatar martinbeentjes commented on July 25, 2024

No problem, I am still thinking of the actual need of the icons.

from tmux-battery.

vass-david avatar vass-david commented on July 25, 2024

Well, I've actually got rid of them in the end, since they are really disrupting whole feeling of my cli interface. I've ended up with only textual information instead of icons:
screen shot 2016-11-16 at 13 21 28
With this config:

set -g @batt_charged_icon "Charged "
set -g @batt_charging_icon "Charging "
set -g @batt_discharging_icon ""
set -g @batt_attached_icon "Attached but not charging! "

set -g @online_icon "Online"
set -g @offline_icon "Offline"

set -g status-right '#{online_status} | #{battery_icon}#{battery_percentage} (#{battery_remain}) | %a %d %h  %H:%M '
set -g status-right-length 80

I've also added spaces after the message "icon", since if it's empty, there is additional space in the bar which really annoyed me.

Now the only thing that bugs me is missing "remaining time" when I'm charging and "calculating remaining time" info when it's calculating after I unplug charger. Is it possible to put it there or can I add it there? I see that the script is really simple.

from tmux-battery.

rlue avatar rlue commented on July 25, 2024

Actually I'd like to chime in and say that having no icon while discharging is not intuitive behavior.

Personally, I use the following settings:

set -g @batt_charged_icon "🔌"
set -g @batt_charging_icon "⚡️"
set -g @batt_discharging_icon "🔋"

I think they'd make better defaults, but of course making a change like this would confuse existing users.

from tmux-battery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.