You are not logged in.

#1 2019-05-01 15:35:15

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

[solved] tmux: invalid option messages after update

I use tmux with config

# color_theme.conf 

# Status update interval
set -g status-interval 1

# ! Force switch on status bar !
set -g status on

# Basic status bar colors
#set -g status-fg colour238
#set -g status-bg colour233
set -g status-fg colour7
set -g status-bg colour239

# Left side of status bar
#set -g status-left-bg colour233
#set -g status-left-fg colour243
set -g status-left-bg colour239
set -g status-left-fg colour248
set -g status-left-length 40
set -g status-left "#[fg=colour248,bg=colour237,nobold] #S #[fg=colour237,bg=colour239,nobold]#[fg=colour248,bg=colour239] #(whoami) #[fg=colour239,bg=colour237]#[fg=colour248,bg=colour237] #I:#P #[fg=colour237,bg=colour239,nobold]"

# Right side of status bar
set -g status-right-bg colour239
set -g status-right-fg colour248
set -g status-right-length 150
set -g status-right "#[fg=colour237,bg=colour239]#[fg=colour248,bg=colour237] %H:%M:%S #[fg=colour239,bg=colour237]#[fg=colour248,bg=colour239] %d-%b-%y #[fg=colour237,bg=colour239]#[fg=colour248,bg=colour237,nobold] #H "

# Window status
set -g window-status-format "  #I:#W#F  "
set -g window-status-current-format "#[fg=colour239,bg=black]#[fg=colour4,nobold] #I:#W#F #[fg=colour239,bg=black,nobold]"

# Current window status
set -g window-status-current-bg colour239
set -g window-status-current-fg colour248

# Window with activity status
set -g window-status-activity-bg colour14 # fg and bg are flipped here due to
set -g window-status-activity-fg colour248  # a bug in tmux

# Window separator
set -g window-status-separator ""

# Window status alignment
set -g status-justify centre

# Pane border
set -g pane-border-bg default
set -g pane-border-fg colour239

# Active pane border
set -g pane-active-border-bg default
set -g pane-active-border-fg colour4

# Pane number indicator
set -g display-panes-colour colour248
set -g display-panes-active-colour colour248

# Clock mode
set -g clock-mode-colour colour4
set -g clock-mode-style 24

# Message
set -g message-bg colour239
set -g message-fg white

# Command message
set -g message-command-bg colour248
set -g message-command-fg black

# Mode
set -g mode-bg colour239
set -g mode-fg colour15

It included in .tmux.conf

...
# Color theme
source-file ~/.tmux/color_theme.conf

I have updated system today, tmux have been updated.

# pacman.log
...
[2019-05-01 12:15] [ALPM] upgraded tmux (2.8-1 -> 2.9-1)
...

Now when I run tmux it says

/home/user1/.tmux/color_theme.conf:26: invalid option: status-left-bg
/home/user1/.tmux/color_theme.conf:27: invalid option: status-left-fg
/home/user1/.tmux/color_theme.conf:32: invalid option: status-right-bg
/home/user1/.tmux/color_theme.conf:33: invalid option: status-right-fg
/home/user1/.tmux/color_theme.conf:42: invalid option: window-status-current-bg
/home/user1/.tmux/color_theme.conf:43: invalid option: window-status-current-fg
/home/user1/.tmux/color_theme.conf:46: invalid option: window-status-activity-bg
/home/user1/.tmux/color_theme.conf:47: invalid option: window-status-activity-fg
/home/user1/.tmux/color_theme.conf:56: invalid option: pane-border-bg
/home/user1/.tmux/color_theme.conf:57: invalid option: pane-border-fg
/home/user1/.tmux/color_theme.conf:60: invalid option: pane-active-border-bg
/home/user1/.tmux/color_theme.conf:61: invalid option: pane-active-border-fg
/home/user1/.tmux/color_theme.conf:72: invalid option: message-bg
/home/user1/.tmux/color_theme.conf:73: invalid option: message-fg
/home/user1/.tmux/color_theme.conf:76: invalid option: message-command-bg
/home/user1/.tmux/color_theme.conf:77: invalid option: message-command-fg
/home/user1/.tmux/color_theme.conf:80: invalid option: mode-bg
/home/user1/.tmux/color_theme.conf:81: invalid option: mode-fg

Are these options deprecated now?

Last edited by Kirill Bugaev (2019-05-01 15:56:27)

Offline

#2 2019-05-01 15:44:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,691
Website

Re: [solved] tmux: invalid option messages after update

You need to fix up your tmux.conf. See, e.g. https://github.com/tmux/tmux/issues/1688


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2019-05-01 15:55:56

Kirill Bugaev
Member
Registered: 2018-08-03
Posts: 173

Re: [solved] tmux: invalid option messages after update

@WorMzy, yep. Thanks.
This from tmux CHANGES

...
CHANGES FROM 2.8 to 2.9
...
* The individual -fg, -bg and -attr options have been removed; they
  were superseded by -style options in tmux 1.9.
...

Offline

#4 2019-05-01 16:14:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] tmux: invalid option messages after update

This is exactly the sort of thing you are supposed to discover before posting here. You won't be warned again.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB