Git Product home page Git Product logo

tmux-onedark-theme's Introduction

tmux-onedark-theme

A dark tmux color scheme for terminal that support True Color, based on onedark.vim, which is inspired by One Dark syntax theme for the Atom text editor.

Why?

I wanted both vim and tmux to share the same color scheme. I tried tmuxline.vim but it didn't render the colors correctly. Furthermore, with tmuxline.vim, you can't control the widgets on right status bar, which is a key feature IMO.

A picture of my terminal with @onedark_widgets set to "#{package_updates} #{free_mem}".
These widgets are available in tmux-status-variables. tmux-onedark-theme Preview

Set Options

! Set the following options in your .tmux.conf

widgets

Widgets can be controlled by setting @onedark_widgets, for example:

set -g @onedark_widgets "#(date +%s)"

Once set, these widgets will show on the right.

default: empty string.

Time format

Time format can be controlled by setting @onedark_time_format, for example:

set -g @onedark_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

Date format can be controlled by setting @onedark_date_format, for example:

set -g @onedark_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 'odedlaz/tmux-onedark-theme'

Hit prefix + I to fetch the plugin and source it.

Manual Installation

Clone the repo:

$ git clone https://github.com/odedlaz/tmux-onedark-theme /a/path/you/choose

Add this line to the bottom of .tmux.conf:

run-shell /a/path/you/choose tmux-onedark-theme.tmux

Reload TMUX environment (type this in terminal)

$ tmux source-file ~/.tmux.conf

Issues

Symbols are missing

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.

Symbols are corrupted

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.

Widgets not working

Make sure that you put the set -g @plugin 'odedlaz/tmux-onedark-theme' before other scripts that alter the status line, or they won't be able to pickup the plugin's changes.

True Color

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.

License

MIT

tmux-onedark-theme's People

Contributors

odedlaz avatar devinalvaro avatar chunkhang avatar nandavelugoti avatar duganchen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.