You are not logged in.

#1 2017-07-22 20:17:45

jLuca
Member
From: Italy
Registered: 2016-12-06
Posts: 24

[SOLVED] i3status-rust block separator and colors

I am using i3 as WM and I wanted to use i3status-rust to replace my i3 status bar.
The problem is that the default solarized-dark theme is broken for me (the separator between blocks won´t be displayed properly and the colors of the blocks seem broken too).

This is my .toml configuration file of the bar:

icons = "awesome"

[theme]
#name = "solarized-dark"
name = "plain"
[theme.overrides]
#idle_bg = "#123456"
#idle_fg = "#abcdef"
#separator = "|"
#separator_bg = "#ffffff"

[[block]]
block = "time"
interval = 1
format = "%a %d/%m/%Y %T"

[[block]]
block = "sound"
interval = 10
step_width = 5

[[block]]
block = "net"
device = "enp3s0"
interval = 5
graph = false

[[block]]
block = "music"
player = "spotify"
max_width = 21
marquee = true
buttons = ["prev", "play", "next"]

[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 20

[[block]]
block = "load"
interval = 3
format = "{1m}"

[[block]]
block = "memory"
format_mem = "{Mum}MB/{MTm}MB({Mup}%)"
format_swap = "{SUm}MB/{STm}MB({SUp}%)"
display_type = "memory"
icons = true
clickable = true
interval = 5
warning_mem = 80
warning_swap = 80
critical_mem = 95
critical_swap = 95

[[block]]
block = "cpu"
interval = 1

This is my i3 .config file (only the bar code):

bar {
	font pango:DejaVu Sans Mono, Icons 12
      	position top
      	# status_command i3status
        status_command i3status-rs ~/.config/i3/status_config.toml
}

Here are two examples, one using the solarized-dark theme and the other one with overriden settings (the separator and the background color of it)
example with solarized-dark theme
example with tweaked settings

What I would like is a bar that looks like the one on the github link (this), or at least to know how to fix mine to get something like that (side-triangle colored separators as well as specific block colors)

Last edited by jLuca (2017-07-23 21:18:48)

Offline

#2 2017-07-22 23:44:52

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [SOLVED] i3status-rust block separator and colors

Try setting 'FontAwesome' instead of 'Icons' in bar section font line?

Offline

#3 2017-07-23 00:31:07

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] i3status-rust block separator and colors

You'll need the font "PowerlineSymbols" from the package powerline-fonts for that separator.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2017-07-23 19:13:05

jLuca
Member
From: Italy
Registered: 2016-12-06
Posts: 24

Re: [SOLVED] i3status-rust block separator and colors

Thank you for your help.

progandy wrote:

You'll need the font "PowerlineSymbols" from the package powerline-fonts for that separator.

It worked and now the bar is displayed properly. How did you figure it out?

Last edited by jLuca (2017-07-23 19:13:46)

Offline

#5 2017-07-23 19:19:35

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] i3status-rust block separator and colors

jLuca wrote:

It worked and now the bar is displayed properly. How did you figure it out?

FontAwesome doesn't contain this symbol, and I recognized the powerline look. Then I compared the character code from the github source (themes.rs) to the powerline font.
PS: I created a bug report.

Last edited by progandy (2017-07-23 19:27:00)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2017-07-23 21:10:46

jLuca
Member
From: Italy
Registered: 2016-12-06
Posts: 24

Re: [SOLVED] i3status-rust block separator and colors

progandy wrote:
jLuca wrote:

It worked and now the bar is displayed properly. How did you figure it out?

FontAwesome doesn't contain this symbol, and I recognized the powerline look. Then I compared the character code from the github source (themes.rs) to the powerline font.
PS: I created a bug report.

Perfect, I was going to do it myself! Thanks again. I will set the thread as closed.
PS: about the bar colors I found this recent commit

Offline

Board footer

Powered by FluxBB