{"repo":"tmux-plugins/tmux-battery","free":true,"listed":false,"github":"https://github.com/tmux-plugins/tmux-battery","clone":"git clone https://github.com/tmux-plugins/tmux-battery.git","description":"Plug and play battery percentage and icon indicator for Tmux.","language":"Shell","stars":573,"topics":["tmux-plugins","tmux-battery","tmux"],"license":"MIT","category":"cli-tools","readme_excerpt":"Tmux battery status Enables displaying battery percentage and status icon in tmux status-right. Installation In order to read the battery status, this plugin depends on having one of the following applications installed: - pmset (MacOS only) - acpi - upower - termux-battery-status - apm In a normal situation, one of the above should be installed on your system by default and thus it should not be necessary to specifically install one of them. That being said, the acpi utility is currently recommended for use over upower where possible due to ongoing CPU usage issues. Installation with Tmux Plugin Manager (recommended) Add plugin to the list of TPM plugins in .tmux.conf : Hit + I to fetch the plugin and source it. If format strings are added to status-right , they should now be visible. Manual Installation Clone the repo: Add this line to the bottom of .tmux.conf : From the terminal, reload TMUX environment: If format strings are added to status-right , they should now be visible. Usage Add any of the supported format strings (see below) to the status-right tmux option in .tmux.conf . Example: Supported Format Strings - #{battery color bg} - will set the background color of the status bar based on the battery charge level if discharging and status otherwise - #{battery color fg} - will set the foreground color of the status bar based on the battery charge level if discharging and status otherwise - #{battery color charge bg} - will set the background color of the status bar ba","default_branch":null,"files":null,"tree":[],"storefront":"/r/tmux-plugins","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tmux-plugins/tmux-battery/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}