Home

Awesome

<div align="center"> <h1>Tokyo Night Tmux Theme</h1> <h4>A Tokyo Night tmux theme directly inspired from Tokyo Night vim theme</h4>

<kbd><br> Features <br></kbd> <kbd><br> Screenshots <br></kbd> <kbd><br> Install <br></kbd> <kbd><br> Available Configurations <br></kbd> <kbd><br> Plugins <br></kbd>


</div>

Features

Plugins

Screenshots

Tokyo Night - Default Variation

InactiveActive
Tokyo Night tmux theme - Default VariationTokyo Night tmux theme - Default Variation

Install

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

set -g @plugin 'fabioluciano/tmux-tokyo-night'

Hit <kbd>prefix</kbd> + <kbd>I</kbd> to fetch the plugin and source it. You can now use the plugin.

Available Configurations

ConfigurationDescriptionAvaliable OptionsDefault
@theme_variationThe tokyo night theme variation to be usenight, storm, moonnight
@theme_active_pane_border_style#737aa2
@theme_inactive_pane_border_style#292e42
@theme_left_separator
@theme_right_separator
@theme_window_with_activity_styleitalics
@theme_status_bell_stylebold
@theme_pluginsdatetime, weather, playerctl, spt, homebrew, yay, batterydatetime,weather
@theme_disable_pluginsDisables plugins1, 00

Plugins

Datetime

Prints informations about the current date and time.

ConfigurationDescriptionAvaliable OptionsDefault
@theme_plugin_datetime_icon
@theme_plugin_datetime_accent_color
@theme_plugin_datetime_accent_color_icon
@theme_plugin_datetime_format

Weather

Prints informations about the current weather. It uses jq to parse the response. Make shure to have it;

ConfigurationDescriptionAvaliable OptionsDefault
@theme_plugin_weather_icon
@theme_plugin_weather_accent_color
@theme_plugin_weather_accent_color_icon
@theme_plugin_weather_format

Playerctl

Prints informations about the current song playing. Does not work in MacOS, because it uses MPRIS, and is only available in Linux.

ConfigurationDescriptionAvaliable OptionsDefault
@theme_plugin_playerctl_icon
@theme_plugin_playerctl_accent_color
@theme_plugin_playerctl_accent_color_icon
@theme_plugin_playerctl_format

Battery

Shows battery charging status (charging or discharging) and battery percentage.

ConfigurationDescriptionAvaliable OptionsDefault
@theme_plugin_battery_charging_iconIcon to display when chargingAny character
@theme_plugin_battery_dischargingIcon to display when on batteryAny character󰁹
@theme_plugin_battery_red_thresholdShow in red when below this %0-10010
@theme_plugin_battery_yellow_thresholdShow in yellow when below this %0-10030
@theme_plugin_battery_red_accent_colorColor when < red thresholdPalette colorred
@theme_plugin_battery_red_accent_color_iconIcon color when < red thresholdPalette colormagenta2
@theme_plugin_battery_yellow_accent_colorColor when < yellow thresholdPalette coloryellow
@theme_plugin_battery_yellow_accent_color_iconIcon color when < yellow thresholdPalette colororange
@theme_plugin_battery_green_accent_colorColor when > yellow thresholdPalette colorblue7
@theme_plugin_battery_green_accent_color_iconIcon color when > yellow thresholdPalette colorblue0

Example configuration

tmux.conf

set -g @plugin 'tmux-plugins/tpm'

set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-logging'

set -g @plugin 'fabioluciano/tmux-tokyo-night'

### Tokyo Night Theme configuration
set -g @theme_variation 'moon'
set -g @theme_left_separator ''
set -g @theme_right_separator ''
set -g @theme_plugins 'datetime,weather,playerctl,yay'

run '~/.tmux/plugins/tpm/tpm'

Transparency examples

Enable transparency with default separators:

### Enable transparency
set -g @theme_transparent_status_bar 'true'

Screenshot 2024-09-07 at 12 41 12

Can also use custom separators:

### Enable transparency
set -g @theme_left_separator ''
set -g @theme_right_separator ''
set -g @theme_transparent_status_bar 'true'
set -g @theme_transparent_left_separator_inverse ''
set -g @theme_transparent_right_separator_inverse ''

Screenshot 2024-09-07 at 12 39 35