Only show battery percentage on systems that have a battery #200
szczys
started this conversation in
Show & Tell
Replies: 1 comment
-
I was having the same problem, thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I share the same .tmux.conf across all systems. I finally added battery percentage display today, and I noticed that it is shown on a desktop system that doesn't have a battery (renders to 0%). I worked out this bit of code that will only display on systems that have a battery present. I'm on Linux Mint, your mileage may vary based on the distro you use and where it maps battery information:
Beta Was this translation helpful? Give feedback.
All reactions