Comments (5)
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.
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.
No problem, I am still thinking of the actual need of the icons.
from tmux-battery.
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:
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.
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)
- unable to showdischarge status in new WSL
- No indication at powerline HOT 1
- No indication at all HOT 1
- [feature] Support Android HOT 3
- Add colour for battery_status when charging HOT 1
- I'm seeing time remaining as a decimal not time HOT 3
- Support for custom background colors HOT 2
- Separate custom background and foreground colors
- Contributor name fix HOT 2
- Unable to see battery_percentage in status-right HOT 2
- Status line print the decimal points of the percentage of the remaining battery
- Can I use this on WSL? HOT 1
- [Solved] battery percentage wrong when I have a second battery
- UPS support
- Feature: Suggest to charge/remove charging at 20% or 80%
- Is there a way to make the background "transparent" or at least consistently one color? HOT 2
- Battery status not showing in Termux HOT 1
- batt_icon_status_charged /_charging, .._discharching: HOT 3
- battery status does not work with acpi (but with upower)
- Two Battery Laptop (Lenovo Thinkpad T70s) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-battery.