Tmux Base16 Statusline

December 18, 2018 ยท View on GitHub

Tmux statusline based on base16-shell. This project has been created forking the amazing tmux-themepack tmux plugin.


Shell's default ANSI colors: base16-gruvbox-dark-hard


Table of Contents

  1. Screenshots
  2. Nerd Fonts Support
  3. Installation
  4. Configuration
  5. Plugin Support
  6. TODO

Screenshots

Base

Prompt

Copy

Nerd Fonts Support

Nerd Fonts

Font used on the screenshoots

Monoid

Installation

Install using Tmux Plugin Manager

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

     set -g @plugin 'jatap/tmux-base16-statusline'
    
  2. Hit prefix + I to fetch the plugin and source it. The plugin should now be working.

Configuration

Select theme via .tmux.conf option:

    set -g @base16-statusline 'main'

<CHAR1> can be configured on the status-left to separate session name to overwrite its default value:

    set -g @base16-statusline-separator-session-name '@'

<CHAR2> can be configured on the status-left to separate panes number and active pane to overwrite its default value:

    set -g @base16-statusline-main-separator '|'

<CHAR2> can also be used on the status-right as @main_separator:

    set -g status-right "#{prefix_highlight} #[fg=yellow]%H:%M:%S #[fg=white]#{@main_separator} #[fg=green]%d-%b-%y "

it's mandatory to add status right on the ~/.tmux.conf file to show prefix_highlight

Plugin Support

tmux-prefix-highlight

Select tmux-prefix-highlight options via .tmux.conf:

    set -g @prefix_highlight_bg black
    set -g @prefix_highlight_fg red
    set -g @prefix_highlight_prefix_prompt '<CHAR3>'
    set -g @prefix_highlight_show_copy_mode 'on'
    set -g @prefix_highlight_copy_prompt '<CHAR4> '
    set -g @prefix_highlight_copy_mode_attr "fg=red,bg=black,bold"
    set -g @prefix_highlight_output_prefix ''
    set -g @prefix_highlight_output_suffix ''

Characters referenced on the project

CharacterImageDescription
\uf461char1CHAR1 * Used on the status-left after the session-name
\ufc5echar2CHAR2 * Used on the status-left and status-right as a separator
\uf6d7char3CHAR3 * Used on the @prefix_highlight_prefix_prompt option
\uf0c5char4CHAR4 * Used on the @prefix_highlight_copy_prompt option

TODO

  • Move status-right to the theme