You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove format string count
* Add variable @batt_remain_short
Hides output if battery is charging or charged, and shortens the discharging output to ~H:MM.
This is done by introducing 4 new format strings that can be added to
68
+
This is done by introducing new format strings that can be added to
69
69
`status-right` option:
70
70
-`#{battery_icon}` - will display a battery status icon
71
71
-`#{battery_percentage}` - will show battery percentage
@@ -96,6 +96,15 @@ after you do this.
96
96
97
97
*Warning*: The battery icon change most likely will not be instant. When you un-plug the power cord, it will take some time (15 - 60 seconds) for the icon to change. This depends on the `status-interval` tmux option. Setting it to 15 seconds should be good enough.
98
98
99
+
## Shortened remaining output
100
+
101
+
To shorten the output of `#{battery_remain}`, set the following variable:
102
+
103
+
set -g @batt_remain_short true
104
+
105
+
This will hide output if the battery is charging or charged, and shorten the
106
+
time remaining (when discharging) to `~H:MM`.
107
+
99
108
### Tmux Plugins
100
109
101
110
This plugin is part of the [tmux-plugins](https://github.com/tmux-plugins) organisation. Checkout plugins as [resurrect](https://github.com/tmux-plugins/tmux-resurrect), [logging](https://github.com/tmux-plugins/tmux-logging), [online status](https://github.com/tmux-plugins/tmux-online-status), and many more over at the [tmux-plugins](https://github.com/tmux-plugins) organisation page.
0 commit comments