The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Change i3status separator character

asked 2012-11-03 04:25:17 +0000

MeanEYE gravatar image

I've been looking to switch from conky to i3status but I can't seem to find in documentation if it is possible to change separator character or string.

Is this at all possible?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-11-03 15:45:19 +0000

Michael gravatar image

No, this is not possible, see src/output.c:print_seperator()

edit flag offensive delete link more

Comments

Would you accept patch for this?

MeanEYE gravatar imageMeanEYE ( 2012-11-03 22:06:57 +0000 )edit
0

answered 2013-03-12 15:25:24 +0000

virtualeyes gravatar image

updated 2013-03-12 15:30:24 +0000

If by switching to i3 status you mean pipe conky through i3status, then you can hide i3's default "|" separator by setting bar statusline color to the same as the background (i.e. make all bar text invisible).

bar {
  status_command ~/.i3/conky.sh
  colors {
    statusline #000000 // hide all text
  }
}

Not very useful at this point ;-)

Then, using i3 bar JSON protocol in your conkyrc, set default color for each line item (e.g. white for black bar background) or custom color, and provide whatever separator character (or no separator at all) you want along with cpu, loadavg, etc.

TEXT
[
  {"full_text": "${loadavg 1} |", "color":"\#ffffff"},
  {"full_text": "WIFI |", "color": ${if_up wlan0}"\#ff80ff"${else}"\#00ffff"${endif}},
  {"full_text": "VPN", "color": ${if_up tun0}"\#ff00ff"${else}"\#00ffff"${endif}}
],

JSON protocol gives you full control regardless of service (conky, dzen, etc.) used.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-03 04:25:17 +0000

Seen: 1,965 times

Last updated: Mar 12 '13