No description
Find a file
Maciej Sypien 044ca063e2
feat: add customizable statusbar (#31)
* feat: define dark and light color palettes

* feat: add customization of status-right & status-left sections

* feat: rename to gruvbox_dark256 and implement alpha option

* fix: transparency for tabs in left status bar

* fix: shellcheck errors

* fix: files according to shfmt

* feat: remove unnecessary modeline

* feat: save palettes as 256 color

* feat: update information about dark256 & light256 themes

* chore: add changelog entry
2024-09-16 00:43:06 +02:00
.github/workflows feat: add shellcheck & shfmt github actions (#33) 2024-09-14 23:53:57 +02:00
docs/assets/img fix: upadate screenshots 2024-09-06 08:57:48 +02:00
src feat: add customizable statusbar (#31) 2024-09-16 00:43:06 +02:00
.editorconfig feat: use 2 indent for sh,tmux files 2024-09-14 20:11:19 +02:00
.gitignore feat: exclude uncommited dir 2024-09-05 12:02:12 +02:00
CHANGELOG.md feat: add customizable statusbar (#31) 2024-09-16 00:43:06 +02:00
gruvbox-tpm.tmux feat: add customizable statusbar (#31) 2024-09-16 00:43:06 +02:00
LICENSE Initial commit 2016-07-25 18:18:55 +02:00
Makefile feat: add shellcheck & shfmt github actions (#33) 2024-09-14 23:53:57 +02:00
README.md feat: add customizable statusbar (#31) 2024-09-16 00:43:06 +02:00
tmux-gruvbox-dark-transparent.conf feat: add dark & light transparent themes (#18) 2024-09-05 23:38:59 +02:00
tmux-gruvbox-dark.conf feat: add customizable statusbar (#31) 2024-09-16 00:43:06 +02:00
tmux-gruvbox-light-transparent.conf feat: add dark & light transparent themes (#18) 2024-09-05 23:38:59 +02:00
tmux-gruvbox-light.conf Add zoom indicator when pane is maximized 2021-04-19 13:36:46 +02:00

Gruvbox theme for Tmux

Theme with 'retro groove' flavor for Tmux, based on Pavel Pertsev's gruvbox colorscheme and inspired by work of Gordon Chiam. Subthemes switching inspired by tmux-color-solarized.

Screenshot made from macOS alacritty terminal with xterm-256color and Hack Nerd Font Regular.
Backgrounds by Aleksandar Pasaric and Vishnu Murali.

Installation

Add plugin at the top list of TPM plugins in .tmux.conf and select desired theme.

# ~/.tmux.conf
set -g @plugin 'egel/tmux-gruvbox'
# set desired options...
set -g @tmux-gruvbox 'dark' # or 'light'

Hit prefix + I to fetch the plugin and source it. Your Tmux should be updated with the theme at this point.

Install manually

  1. Clone the project to desired location

    ![TIP] If you do not have github account download it and unzip.

    cd ~/projects/
    git clone ...
    
  2. Add theme at to top of your ~/.tmux.conf config.

    # ~/.tmux.conf
    run ~/projects/tmux-gruvbox/tmux-gruvbox.tmux
    # set desired options...
    set -g @tmux-gruvbox 'dark' # or light
    

Configuration options

Theme

set -g @tmux-gruvbox 'dark256'

Transparent status-bar

  • default value: 'false'
  • tmux >= 3.2 (experimental)
set -g @tmux-gruvbox-statusbar-alpha 'true'

Left Status (Section A)

  • default value: '#S'
set -g @tmux-gruvbox-left-status-a

Right Status (Section X)

  • default value: '%Y-%m-%d'

This section is customizable for user, and by default contains current date.

set -g @tmux-gruvbox-right-status-x

Right Status (Section Y)

  • default value: '%H:%M'

This section is customizable for user, and by default contains current time.

# set different time format
set -g @tmux-gruvbox-right-status-y '%H:%M'

Right Status (Section Z)

  • default value: '#h'

This section is customizable for user, and by default contains hostname.

# enhance this section with other plugin
set -g @tmux-gruvbox-right-status-z '#h #{tmux_mode_indicator} '

Development

To run project locally:

  1. clone the repository to desired place

    cd $HOME/projects/
    git clone ...
    
  2. create a symlink to the cloned repository (best in the standard TPM plugin directory):

    # cd to tmux plugin directory
    cd ~/.tmux/plugins/
    
    # create symlink to cloned repo
    ln -sf $HOME/projects/tmux-gruvbox/ tmux-gruvbox
    
  3. and in ~/.tmux.conf set

    # ~/.tmux.conf
    set -g @plugin 'egel/tmux-gruvbox'
    # set desired options...
    set -g @tmux-gruvbox 'dark'
    

Linters & formatters

To keep the files clean we use few program to help us achieve it:

  1. Editorconfig (make sure your editor have it)
  2. Markdown (prettier/prettierd)
  3. Shell (shellcheck, shfmt)

License

GPLv3 - Maciej Sypień