seebi / tmux-colors-solarized

A color theme for the tmux terminal multiplexer using Ethan Schoonover’s Solarized color scheme
http://ethanschoonover.com/solarized
1.09k stars 147 forks source link

tmuxcolors-light.conf causes dark status bar in suckless st with solarized light patch applied. #21

Closed crocket closed 6 years ago

crocket commented 6 years ago

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.

~/.tmux.conf with tmuxcolors-light.conf pasted at the end

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

2018-03-05_mon_11 07 45

~/.tmux.conf with tmuxcolors-dark.conf pasted at the end

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

2018-03-05_mon_11 32 56

Question

Is that how tmux is supposed to look with solarized color themes? Why is status bar dark with tmuxcolors-light.conf applied?

crocket commented 6 years ago

It seems to be a problem of st. Alacritty doesn't have this issue.

tompreston commented 6 years ago

@crocket did you ever fix this? What about st breaks tmux status bar colours?

crocket commented 6 years ago

I deleted st and use only alacritty. I didn't fix it.

markuspeloquin commented 5 years ago

:( I'm seeing the same problem with gnome-terminal 3.32.2. I set my palette not to the incorrect builtin solarized theme, but used the color codes from https://github.com/jwilm/alacritty/wiki/Color-schemes#solarized (light).

You don't have any screenshots anywhere, so I'm not seeing what it's supposed to look like. I just see what @tompreston showed above.

I'm using tmux-3.0-rc4.

Update It looks like I simply had the 'white' and 'black' colors reversed. I don't even know why I tried entering the colors myself, the builtin solarized palette looks fine.

klobastov commented 1 month ago

same with XTerm(372)