A light tmux color scheme for terminal that supports True Color, based on tmux-onelight-theme.
! Set the following options in your .tmux.conf
Widgets can be controlled by setting @onelight_widgets
, for example:
These widgets are available in tmux-status-variables.
set -g @onelight_widgets "#(date +%s)"
Once set, these widgets will show on the right.
default: empty string.
Time format can be controlled by setting @onelight_time_format
, for example:
set -g @onelight_time_format "%I:%M %p"
%I
- The hour as a decimal number using a 12-hour clock
%M
- The minute as a decimal number
%p
- Either "AM" or "PM" according to the given time value.
default: %R
- The time in 24-hour notation (%H:%M).
These modifiers were taken from from strftime manpage.
Date format can be controlled by setting @onelight_date_format
, for example:
set -g @onelight_date_format "%D"
%D
- Equivalent to %m/%d/%y (American format).
%m
- The month as a decimal number.
%d
- The day of the month as a decimal number
%y
- The year as a decimal number without the century.
default: %d/%m/%Y
- The date in non-American format.
These modifiers were taken from from strftime manpage.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'bweave/tmux-onelight-theme'
Hit prefix + I
to fetch the plugin and source it.
Clone the repo:
$ git clone https://github.com/bweave/tmux-onelight-theme /a/path/you/choose
Add this line to the bottom of .tmux.conf
:
run-shell /a/path/you/choose tmux-onelight-theme.tmux
Reload TMUX environment (type this in terminal)
$ tmux source-file ~/.tmux.conf
The theme requires Powerline symbols exist and set on your system. Follow these instructions to install them, then update your terminal fonts to use them.
Patched Powerline fonts aren't picked up when $LANG
isn't set to en_US
.
You can change the default locale settings at /etc/default/locale
.
Make sure that you put the set -g @plugin 'bweave/tmux-onelight-theme'
before other scripts that alter the status line, or they won't be able to pickup the plugin's changes.
tmux version <= 2.3, don't support true color in the status line. Support has been added, and will probably ship in the next release. You can compile tmux and enjoy True Color right away!
Make sure TrueColor is enabled and working. follow these instructions to do so.