mirror of
https://github.com/GeorgeSG/dotfiles.git
synced 2026-11-03 10:38:44 +00:00
Add tomorow-night tmux theme
This commit is contained in:
+15
-30
@@ -20,46 +20,31 @@ setw -g pane-base-index 1 # make pane numbering consistent with windows
|
||||
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
|
||||
setw -q -g utf8 on
|
||||
|
||||
|
||||
# -------------------
|
||||
# Visual Settings
|
||||
# -------------------
|
||||
|
||||
set -g default-terminal "screen-256color"
|
||||
source-file ~/.tmux/themes/tomorrow-night.tmux
|
||||
|
||||
# Theme Variables
|
||||
|
||||
TMUX_ACTIVE_COLOR="#3e999f"
|
||||
TMUX_ACTIVE_COLOR="#373b41"
|
||||
|
||||
TMUX_PANE_BORDER_FG="#d6d6d6"
|
||||
TMUX_PANE_ACTIVE_BORDER_FG=$TMUX_ACTIVE_COLOR
|
||||
|
||||
TMUX_MESSAGE_FG=$TMUX_ACTIVE_COLOR
|
||||
TMUX_MESSAGE_BG="#d6d6d6"
|
||||
|
||||
TMUX_STATUS_TEXT_COLOR="#efefef"
|
||||
TMUX_STATUS_TEXT_COLOR="#c5c8c6"
|
||||
TMUX_STATUS_BG="#26292c"
|
||||
|
||||
TMUX_PANE_BG=$TMUX_STATUS_TEXT_COLOR
|
||||
TMUX_NAMESPACE_FG="#000000"
|
||||
TMUX_STATUS_RED="#cc6666"
|
||||
|
||||
TMUX_NAMESPACE_FG=$TMUX_STATUS_TEXT_COLOR
|
||||
TMUX_STATUS_RED="#c82829"
|
||||
|
||||
TMUX_USERNAME_FG=$TMUX_STATUS_TEXT_COLOR
|
||||
TMUX_STATUS_ORANGE="#f5871f"
|
||||
|
||||
# Pane borders
|
||||
set -g pane-border-style "fg=$TMUX_PANE_BORDER_FG"
|
||||
set -g pane-active-border-style "fg=$TMUX_PANE_ACTIVE_BORDER_FG"
|
||||
TMUX_USERNAME_FG="#000000"
|
||||
TMUX_STATUS_AQUA="#8abeb7"
|
||||
|
||||
# Styles
|
||||
STYLE_DEFAULT="fg=white,bg=$TMUX_STATUS_BG"
|
||||
STYLE_ACTIVE_ITEM="fg=$TMUX_STATUS_TEXT_COLOR,bg=$TMUX_ACTIVE_COLOR,noreverse,bold"
|
||||
STYLE_RED="fg=$TMUX_NAMESPACE_FG,bg=$TMUX_STATUS_RED,bold"
|
||||
STYLE_ORANGE="fg=$TMUX_USERNAME_FG,bg=$TMUX_STATUS_ORANGE,bold"
|
||||
|
||||
# Message in status bar (e.g. Copied successfully)
|
||||
# set -g message-style "fg=$TMUX_STATUS_TEXT_COLOR,bg=$TMUX_MESSAGE_BG"
|
||||
STYLE_ACTIVE_ITEM="#[fg=$TMUX_STATUS_TEXT_COLOR,bg=$TMUX_ACTIVE_COLOR,noreverse,bold]"
|
||||
STYLE_RED="#[fg=$TMUX_NAMESPACE_FG,bg=$TMUX_STATUS_RED,bold]"
|
||||
STYLE_AQUA="#[fg=$TMUX_USERNAME_FG,bg=$TMUX_STATUS_AQUA,bold]"
|
||||
|
||||
# Status bar
|
||||
set-option -g status-position bottom
|
||||
@@ -67,17 +52,17 @@ set-option -g status-position bottom
|
||||
# Status mid style
|
||||
set -g status-style $STYLE_DEFAULT
|
||||
|
||||
set -g status-left "#{prefix_highlight}#[$STYLE_RED] #S #[fg=$TMUX_STATUS_RED,bg=$TMUX_STATUS_ORANGE,bold]#[$STYLE_ORANGE] #(whoami) #[fg=$TMUX_STATUS_ORANGE,bg=$TMUX_STATUS_BG,bold] "
|
||||
set -g status-left "#{prefix_highlight}$STYLE_RED #S #[fg=$TMUX_STATUS_RED,bg=$TMUX_STATUS_AQUA,bold]$STYLE_AQUA #(whoami) #[fg=$TMUX_STATUS_AQUA,bg=$TMUX_STATUS_BG,bold] "
|
||||
set -g status-left-length 30
|
||||
|
||||
PC_STATS="#[$STYLE_ACTIVE_ITEM] cpu #{cpu_icon} #{cpu_percentage} #[$STYLE_DEFAULT] #[$STYLE_ACTIVE_ITEM] mem #{ram_icon} #{ram_percentage} #[$STYLE_DEFAULT]"
|
||||
PC_STATS="$STYLE_ACTIVE_ITEM cpu #{cpu_icon} #{cpu_percentage} #[$STYLE_DEFAULT] $STYLE_ACTIVE_ITEM mem #{ram_icon} #{ram_percentage} #[$STYLE_DEFAULT]"
|
||||
|
||||
set -g status-right "$PC_STATS #[fg=$TMUX_STATUS_ORANGE,bg=$TMUX_STATUS_BG,bold]#[$STYLE_ORANGE] #H #[fg=$TMUX_STATUS_RED,bg=$TMUX_STATUS_ORANGE,bold]#[$STYLE_RED] %a, %h %d %H:%M "
|
||||
set -g status-right "$PC_STATS #[fg=$TMUX_STATUS_AQUA,bg=$TMUX_STATUS_BG,bold]$STYLE_AQUA leanplum #[fg=$TMUX_STATUS_RED,bg=$TMUX_STATUS_AQUA,bold]$STYLE_RED %a, %h %d %H:%M "
|
||||
set -g status-right-length 90
|
||||
|
||||
# window name options
|
||||
set -g window-status-format "#[$STATUS_DEFAILT] #I #W "
|
||||
set -g window-status-current-format "#[$STYLE_ACTIVE_ITEM] #I #W "
|
||||
# set -g window-status-format "#[$STATUS_DEFAILT] #I #W "
|
||||
# set -g window-status-current-format "$TYLE_ACTIVE_ITEM] #I #W "
|
||||
|
||||
# Prefix style
|
||||
# https://github.com/tmux-plugins/tmux-prefix-highlight
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
# https://github.com/edouard-lopez/tmux-tomorrow/
|
||||
# Color key:
|
||||
# #1d1f21 Background
|
||||
# #282a2e Current Line
|
||||
# #373b41 Selection
|
||||
# #c5c8c6 Foreground
|
||||
# #969896 Comment
|
||||
# #cc6666 Red
|
||||
# #de935f Orange
|
||||
# #f0c674 Yellow
|
||||
# #b5bd68 Green
|
||||
# #8abeb7 Aqua
|
||||
# #81a2be Blue
|
||||
# #b294bb Purple
|
||||
|
||||
|
||||
## set status bar
|
||||
set -g status-style bg=default
|
||||
setw -g window-status-current-style bg="#282a2e"
|
||||
setw -g window-status-current-style fg="#81a2be"
|
||||
|
||||
## highlight active window
|
||||
setw -g window-style 'bg=#282a2e'
|
||||
setw -g window-active-style 'bg=#1d1f21'
|
||||
setw -g pane-active-border-style ''
|
||||
|
||||
## highlight activity in status bar
|
||||
setw -g window-status-activity-style fg="#8abeb7"
|
||||
setw -g window-status-activity-style bg="#1d1f21"
|
||||
|
||||
## pane border and colors
|
||||
set -g pane-active-border-style bg=default
|
||||
set -g pane-active-border-style fg="#373b41"
|
||||
set -g pane-border-style bg=default
|
||||
set -g pane-border-style fg="#373b41"
|
||||
|
||||
set -g clock-mode-colour "#81a2be"
|
||||
set -g clock-mode-style 24
|
||||
|
||||
set -g message-style bg="#8abeb7"
|
||||
set -g message-style fg="#000000"
|
||||
|
||||
set -g message-command-style bg="#8abeb7"
|
||||
set -g message-command-style fg="#000000"
|
||||
|
||||
# message bar or "prompt"
|
||||
set -g message-style bg="#2d2d2d"
|
||||
set -g message-style fg="#cc99cc"
|
||||
|
||||
set -g mode-style bg="#1d1f21"
|
||||
set -g mode-style fg="#de935f"
|
||||
|
||||
# right side of status bar holds "[host name] (date time)"
|
||||
set -g status-right-length 100
|
||||
set -g status-right-style fg=black
|
||||
set -g status-right-style bold
|
||||
set -g status-right '#[fg=#f99157,bg=#2d2d2d] %H:%M |#[fg=#6699cc] %y.%m.%d '
|
||||
|
||||
# make background window look like white tab
|
||||
set-window-option -g window-status-style bg=default
|
||||
set-window-option -g window-status-style fg=white
|
||||
set-window-option -g window-status-style none
|
||||
set-window-option -g window-status-format '#[fg=#6699cc,bg=colour235] #I #[fg=#999999,bg=#2d2d2d] #W #[default]'
|
||||
|
||||
# make foreground window look like bold yellow foreground tab
|
||||
set-window-option -g window-status-current-style none
|
||||
set-window-option -g window-status-current-format '#[fg=#f99157,bg=#2d2d2d] #I #[fg=#cccccc,bg=#393939] #W #[default]'
|
||||
|
||||
# active terminal yellow border, non-active white
|
||||
set -g pane-border-style bg=default
|
||||
set -g pane-border-style fg="#999999"
|
||||
set -g pane-active-border-style fg="#f99157"
|
||||
Reference in New Issue
Block a user