Tmux Base16 Statusline Save

Tmux Base16 Statusline

Project README

Tmux Base16 Statusline

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

Character Image Description
\uf461 char1 CHAR1 * Used on the status-left after the session-name
\ufc5e char2 CHAR2 * Used on the status-left and status-right as a separator
\uf6d7 char3 CHAR3 * Used on the @prefix_highlight_prefix_prompt option
\uf0c5 char4 CHAR4 * Used on the @prefix_highlight_copy_prompt option

TODO

  • Move status-right to the theme
Open Source Agenda is not affiliated with "Tmux Base16 Statusline" Project. README Source: jatap/tmux-base16-statusline
Stars
26
Open Issues
0
Last Commit
7 months ago

Open Source Agenda Badge

Open Source Agenda Rating