187 lines
5.7 KiB
Markdown
187 lines
5.7 KiB
Markdown
<h3 align="center">
|
|
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width="100" alt="Logo"/><br/>
|
|
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
|
|
Catppuccin for <a href="https://github.com/tmux/tmux">Tmux</a>
|
|
<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
|
|
</h3>
|
|
|
|
<p align="center">
|
|
<a href="https://github.com/catppuccin/tmux/stargazers"><img src="https://img.shields.io/github/stars/catppuccin/tmux?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
|
|
<a href="https://github.com/catppuccin/tmux/issues"><img src="https://img.shields.io/github/issues/catppuccin/tmux?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
|
|
<a href="https://github.com/catppuccin/tmux/contributors"><img src="https://img.shields.io/github/contributors/catppuccin/tmux?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<img src="./assets/preview.webp"/>
|
|
</p>
|
|
|
|
## Content
|
|
|
|
1. [Themes](#themes)
|
|
2. [Installation](#installation)
|
|
3. [Status line themes](#status-line-themes)
|
|
1. [Default](#default)
|
|
2. [Pill](#pill-shape)
|
|
3. [Powerline](#powerline)
|
|
4. [Powerline with icons](#powerline-with-icons)
|
|
5. [No patched fonts](#no-patched-fonts)
|
|
4. [Configuration options](#configuration-options)
|
|
1. [Enable window tabs](#enable-window-tabs)
|
|
2. [Configure separators](#configure-separator)
|
|
3. [Enable date and time](#enable-datetime)
|
|
4. [Enable user](#enable-user)
|
|
5. [Enable host](#enable-host)
|
|
|
|
## Themes
|
|
|
|
- 🌻 [Latte](./catppuccin-latte.tmuxtheme)
|
|
- 🪴 [Frappé](./catppuccin-frappe.tmuxtheme)
|
|
- 🌺 [Macchiato](./catppuccin-macchiato.tmuxtheme)
|
|
- 🌿 [Mocha](./catppuccin-mocha.tmuxtheme)
|
|
|
|
## Installation
|
|
|
|
In order to have the icons displayed correctly please use / update your favorite patched font.
|
|
If you do not have patched font installed, you can use the [No patched fonts](#no-patched-fonts) status line theme.
|
|
|
|
### TPM
|
|
|
|
1. Install [TPM](https://github.com/tmux-plugins/tpm)
|
|
2. Add the Catppuccin plugin:
|
|
|
|
```bash
|
|
set -g @plugin 'catppuccin/tmux'
|
|
# ...alongside
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
```
|
|
|
|
3. (Optional) Set your preferred flavour, it defaults to `"mocha"`:
|
|
|
|
```bash
|
|
set -g @catppuccin_flavour 'latte' # or frappe, macchiato, mocha
|
|
```
|
|
|
|
### Manual
|
|
|
|
1. Copy your desired theme's configuration contents into your Tmux config (usually stored at `~/.tmux.conf`)
|
|
2. Reload Tmux by either restarting the session or reloading it with `tmux source-file ~/.tmux.conf`
|
|
|
|
## Status line themes
|
|
|
|
### Default
|
|
|
|

|
|
|
|
With window tabs option enabled
|
|
|
|

|
|
|
|
### Pill shape
|
|
|
|
```sh
|
|
set -g @catppuccin_pill_theme_enabled on
|
|
```
|
|
|
|

|
|
|
|
### Powerline
|
|
|
|
```sh
|
|
set -g @catppuccin_powerline_theme_enabled on
|
|
set -g @catppuccin_l_left_separator ""
|
|
set -g @catppuccin_l_right_separator ""
|
|
set -g @catppuccin_r_left_separator ""
|
|
set -g @catppuccin_r_right_separator ""
|
|
```
|
|
|
|

|
|
|
|
### Powerline with icons
|
|
|
|
```sh
|
|
set -g @catppuccin_powerline_icons_theme_enabled on
|
|
set -g @catppuccin_l_left_separator ""
|
|
set -g @catppuccin_l_right_separator ""
|
|
set -g @catppuccin_r_left_separator ""
|
|
set -g @catppuccin_r_right_separator ""
|
|
```
|
|
|
|

|
|
|
|
### No patched fonts
|
|
|
|
```sh
|
|
set -g @catppuccin_no_patched_fonts_theme_enabled on
|
|
```
|
|
|
|

|
|
|
|
## Configuration options
|
|
|
|
All flavours support certain levels of customization that match our [Catppuccin
|
|
Style Guide][style-guide]. To add these customizations, add any of the following
|
|
options to your Tmux configuration.
|
|
|
|
### Enable window tabs
|
|
|
|
By default, the theme places the `window-status` in the `status-right`. With
|
|
`@catppuccin_window_tabs_enabled` set to `on`, the theme will place the
|
|
directory within the `status-right` and move the window names to the
|
|
`window-status` format variables.
|
|
|
|
```sh
|
|
set -g @catppuccin_window_tabs_enabled on # or off to disable window_tabs
|
|
```
|
|
|
|
### Configure separator
|
|
|
|
By default, the theme will use a round separator.
|
|
To overwrite it use `@catppuccin_l_left_separator`, `@catppuccin_l_right_separator` for left status / window tabs and `@catppuccin_r_left_separator`, `@catppuccin_r_right_separator` for right status.
|
|
|
|
With the default status line theme
|
|
|
|
```sh
|
|
set -g @catppuccin_l_right_separator "█"
|
|
set -g @catppuccin_r_left_separator "█"
|
|
```
|
|
|
|
### Enable DateTime
|
|
|
|
By default, the `date_time` componenet is set to off.
|
|
It can be enabled by specifing any tmux date and time format.
|
|
|
|
```sh
|
|
set -g @catppuccin_date_time "%Y-%m-%d %H:%M"
|
|
```
|
|
|
|
### Enable User
|
|
|
|
By default, the `user` componenet is set to off.
|
|
It can be enabled by toggling it on.
|
|
|
|
```sh
|
|
set -g @catppuccin_user "on"
|
|
```
|
|
|
|
### Enable Host
|
|
|
|
By default, the `host` componenet is set to off.
|
|
It can be enabled by toggling it on.
|
|
|
|
```sh
|
|
set -g @catppuccin_host "on"
|
|
```
|
|
|
|
[style-guide]: https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md
|
|
|
|
## 💝 Thanks to
|
|
|
|
- [Pocco81](https://github.com/catppuccin)
|
|
- [vinnyA3](https://github.com/vinnyA3)
|
|
- [rogeruiz](https://github.com/rogeruiz)
|
|
|
|
|
|
|
|
<p align="center"><img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" /></p>
|
|
<p align="center">Copyright © 2021-present <a href="https://github.com/catppuccin" target="_blank">Catppuccin Org</a>
|
|
<p align="center"><a href="https://github.com/catppuccin/catppuccin/blob/main/LICENSE"><img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8"/></a></p>
|