I3status-rust: 0.14.3 breaks custom theme configuration

Created on 4 Dec 2020  路  6Comments  路  Source: greshake/i3status-rust

Upgraded to 0.14.3, but found that I now get an error in the status bar (ran directly in terminal to get the output):

$ /usr/bin/i3status-rs ~/.config/i3status-rust/config.toml

{"version": 1, "click_events": true}
[[{"background":"#000000","color":"#dc322f","full_text":" Configuration error: failed to parse TOML from file contents.\nCause: invalid type: map, expected a string for key `theme` at line 5 column 1 ","separator":false,"separator_block_width":0}]


Configuration error: failed to parse TOML from file contents.
Cause: invalid type: map, expected a string for key `theme` at line 5 column 1

~/.config/i3status-rust/config.toml:

[theme]
file = "onedark.toml"


[[block]]
block = "time"
format = "%a %d/%m %R"

~/.config/i3status-rust/themes/onedark.toml:

idle_bg = "#282c34"
idle_fg = "#abb2bf"
info_bg = "#61afef"
info_fg = "#282c34"
good_bg = "#282c34"
good_fg = "#abb2bf"
warning_bg = "#e5c07b"
warning_fg = "#282c34"
critical_bg = "#e06c75"
critical_fg = "#282c34"
separator = ""
separator_bg = "auto"
separator_fg = "auto"
alternating_tint_bg = "#282c34"
alternating_tint_fg = "#abb2bf"

Downgrading to 0.14.2 sees everything working normally. The error would suggest that I need to use a different style of configuration to specify a custom theme, though I'm not sure what that would be.

bug configuration

Most helpful comment

938 introduced a new key: native_separators, a bool. If you add

native_separators = false
(or true) to your theme file it should work again (it did for me).

All 6 comments

Downgrading to 0.14.2* worked for me.

Oops, thank you :+1:

938 introduced a new key: native_separators, a bool. If you add

native_separators = false
(or true) to your theme file it should work again (it did for me).

Sorry, this was unintended - that field should be optional like the others.

Fair enough. That indeed fixed it for me. Should this issue remain open? Or should this simply get considered a breaking change?

It's a bug

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jpeeler picture jpeeler  路  5Comments

kepi picture kepi  路  7Comments

yawpitch picture yawpitch  路  4Comments

oschoudhury picture oschoudhury  路  6Comments

greshake picture greshake  路  6Comments