Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pwittchen/tmux-plugin-battery

tmux plugin showing battery level
https://github.com/pwittchen/tmux-plugin-battery

battery linux macos plugin tmux tmux-plugin

Last synced: 27 days ago
JSON representation

tmux plugin showing battery level

Awesome Lists containing this project

README

        

tmux-plugin-battery
===================
tmux plugin showing battery level

There's already another plugin for the same thing called [tmux-battery](https://github.com/tmux-plugins/tmux-battery), but this one is just simpler and adjusted to my needs.

Installation
------------
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)

Add plugin to the list of TPM plugins in `.tmux.conf`:

```
set -g @plugin 'pwittchen/tmux-plugin-battery'
```

Hit `prefix + I` to fetch the plugin and source it.

If format strings are added to `status-right`, they should now be visible.

Usage
-----

In order to see battery level via this tmux plugin, add the following command to your `.tmux.conf` file:

```
#{battery_level}
```

References
----------
- https://github.com/tmux-plugins
- https://github.com/tmux-plugins/tmux-example-plugin
- https://github.com/tmux-plugins/tmux-battery
- https://github.com/pwittchen/dotfiles