<commit_before># Tmux battery status for OSX

Enables displaying battery percentage and status icon in Tmux status-right.

Battery full:<br/>
![battery full](/screenshots/battery_full.png)

Battery discharging, custom discharge icon:<br/>
![battery discharging, custom icon](/screenshots/battery_discharging.png)

Battery charging:<br/>
![battery charging](/screenshots/battery_charging.png)

This is done by introducing 2 new format strings that can be added to
`status-right` option:
- `#{battery_icon}` - will display a battery status icon
- `#{battery_percentage}` - will show battery percentage

### Usage

Add `#{battery_icon}` or `#{battery_percentage}` format strings to existing
`status-right` Tmux option.

Example:

    set -g status-right "Batt: #{battery_icon} #{battery_percentage} | %a %h-%d %H:%M "

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

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

    set -g @tpm_plugins "              \
      bruno-/tpm                       \
      bruno-/tmux_battery_osx          \
    "

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

If format strings are added to `status-right`, they should now be visible.<commit_msg>Readme tweaks<commit_after># Tmux battery status for OSX

Enables displaying battery percentage and status icon in Tmux status-right.

Battery full:<br/>
![battery full](/screenshots/battery_full.png)

Battery discharging, custom discharge icon:<br/>
![battery discharging, custom icon](/screenshots/battery_discharging.png)

Battery charging:<br/>
![battery charging](/screenshots/battery_charging.png)

This is done by introducing 2 new format strings that can be added to
`status-right` option:
- `#{battery_icon}` - will display a battery status icon
- `#{battery_percentage}` - will show battery percentage

### Usage

Add `#{battery_icon}` or `#{battery_percentage}` format strings to existing
`status-right` Tmux option. Example:

    # in .tmux.conf
    set -g status-right "Batt: #{battery_icon} #{battery_percentage} | %a %h-%d %H:%M "

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

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

    set -g @tpm_plugins "              \
      bruno-/tpm                       \
      bruno-/tmux_battery_osx          \
    "

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

If format strings are added to `status-right`, they should now be visible.
{'fraction_non_alphanumeric': 0.11406690850463523, 'fraction_numerical': 0.0008061265618702137, 'mean_word_length': 3.613382899628253, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6658661', 'n_tokens_mistral': 808, 'n_tokens_neox': 789, 'n_words': 254}