seebi / tmux-colors-solarized Goto Github PK
View Code? Open in Web Editor NEWA color theme for the tmux terminal multiplexer using Ethan Schoonover’s Solarized color scheme
Home Page: http://ethanschoonover.com/solarized
A color theme for the tmux terminal multiplexer using Ethan Schoonover’s Solarized color scheme
Home Page: http://ethanschoonover.com/solarized
Would love not to manually copy paste this source, and instead use:
When I apply the configs from this project, I see my tmux status line take the correct colors, but the rest of the terminal background stays the same as it was before (in my case, black). Did you have to do specific terminal configuration to achieve your screenshots?
This is my proposition for missing status bell style:
set-window-option -g window-status-bell-style fg=brightblack,bg=red
I'm using dark theme right now - it can be adjusted for other color variants as well.
$ tmux -V
tmux 1.8
$ uname -a
Linux savanna 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
tmux-colors-solarized/tmuxcolors-256.conf:34: unknown option: window-status-bell-style
https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf#L34
Non of the files have an option like
setw -g window-style bg=white,fg=black
Thus, nothing set the colors of the windows.
First of all thank the author for providing us with such a good plug-in for tmux!
and I found a problem about the tmux config file "unknown option:window-status-bell-style"
so I exec the command man tmux ,and found as follows:
- window-status-bell-attr attributes
Set status line attributes for windows which have a bell
alert.
- window-status-bell-bg colour
Set status line background colour for windows with a bell
alert.
- window-status-bell-fg colour
Set status line foreground colour for windows with a bell
alert.
so we can solve the problem via changing the option
all other colors are set except the background color
I get errors when trying to use your dark or light themes. My tmux version is probably older than yours. Or something.
$ tmux -V
tmux 1.5
$ tmux source /nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-256.conf
(no output, works fine)
$ tmux source /nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf: 9: bad colour: brightblue
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf: 14: bad colour: brightred
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf: 20: bad colour: brightgreen
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf: 24: bad colour: brightred
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-dark.conf: 28: bad colour: brightred
$ tmux source /nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf: 9: bad colour: brightyellow
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf: 14: bad colour: brightred
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf: 20: bad colour: brightcyan
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf: 24: bad colour: brightred
/nail/home/buck/trees/tmux-colors-solarized/tmuxcolors-light.conf: 28: bad colour: brightred
I'm trying to solarize tmux but there's some problem I cannot identify.
$ tmux -2
$ echo $TERM
screen-256color
$ for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done
show 256 colors alright
My ~/.tmux.conf
unbind %
bind-key ^\ kill-session
set -g status-left '#[default]#S #[fg=blue]#H#[default]'
set-option -g display-time 2000
set -g set-remain-on-exit on #keeps the window/pane from closing, and
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=yellow]#(cut -d " " -f 1 /proc/loadavg)#[default] %b %d %H:%M#[default]'
set -g status-right-length 50
set -g status-interval 1
setw -g monitor-activity off
set -g visual-activity off
set -g visual-silence off
set -g visual-bell on
setw -g automatic-rename
bind v split-window -v
bind V split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
setw -g mode-keys vi
bind < resize-pane -L 2
bind > resize-pane -R 2
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
set -g history-limit 20000
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
setw -g clock-mode-colour green
setw -g clock-mode-style 24
bind-key F1 source-file ~/.tmux/ocaml
bind-key F2 source-file ~/.tmux/fsharp
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
set-window-option -g clock-mode-colour colour64 #green
set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red
The tmux status bar changes to the right color upon installation, however everything else appears the same. Installation with manual concatenation to .tmux.conf and with TPM both fail the same way. Currently using MacOS Terminal and tmux version 2.3.
.bashrc:
if [[ -n ${TMUX} ]]; then
export TERM='screen-256color'
else
export TERM='xterm-256color'
fi
.tmux.conf:
set -g default-terminal 'screen-256color'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @colors-solarized 'dark'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Checking screen from within tmux:
$ echo $TERM
screen-256color
status-attr
, window-status-fg
, window-status-bg
, window-status-current-fg
, window-status-current-bg
, pane-border-fg
, pane-active-border-fg
, message-bg
and message-fg
have been removed from tmux.
Hi.
how do You install this code to colorize tmux? You keep mentioning "this" snippet, but I cant see it or understand what you mean.
/Thanx
I applied st-no_bold_colors-0.7.diff and st-solarized-light-0.7.diff from https://st.suckless.org/patches/solarized/ to suckless st on Gentoo.
set-window-option -g mode-keys emacs
set-window-option -g allow-rename off
#set -g status-style "fg=#65578a"
#set -ag status-style "bg=#d6ceb7"
set -g default-command $SHELL
#set -g default-terminal xterm-256color
set-option -ga terminal-overrides ",st-256color:Tc"
unbind-key C-b
set -g prefix M-'`'
bind M-'`' send-prefix
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key C-y run "xsel -o --clipboard | tmux load-buffer -; tmux paste-buffer"
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -b; xsel -o -b | tmux load-buffer -"
#### COLOUR (Solarized light)
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-fg brightcyan #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
set-window-option -g mode-keys emacs
set-window-option -g allow-rename off
#set -g status-style "fg=#65578a"
#set -ag status-style "bg=#d6ceb7"
set -g default-command $SHELL
#set -g default-terminal tmux-256color
set-option -ga terminal-overrides ",st-256color:Tc"
unbind-key C-b
set -g prefix M-'`'
bind M-'`' send-prefix
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key C-y run "xsel -o --clipboard | tmux load-buffer -; tmux paste-buffer"
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -b; xsel -o -b | tmux load-buffer -"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
Is that how tmux is supposed to look with solarized color themes? Why is status bar dark with tmuxcolors-light.conf applied?
I am new to Mac and tmux. Please be gentle :)
I am using Mac, iterm2. I double checked my config file and also made sure tmux is using the config file. Can you please help me with this? What do you suggest me to debug ? Please let me know if you need more info to fix this.
Thanks,
tmux 2.9
/Users/xiaods/.tmux.conf:83: invalid option: status-attr
/Users/xiaods/.tmux.conf:86: invalid option: window-status-fg
/Users/xiaods/.tmux.conf:87: invalid option: window-status-bg
/Users/xiaods/.tmux.conf:91: invalid option: window-status-current-fg
/Users/xiaods/.tmux.conf:92: invalid option: window-status-current-bg
/Users/xiaods/.tmux.conf:96: invalid option: pane-border-fg
/Users/xiaods/.tmux.conf:97: invalid option: pane-active-border-fg
/Users/xiaods/.tmux.conf:100: invalid option: message-bg
/Users/xiaods/.tmux.conf:101: invalid option: message-fg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.