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

i3Blocks Color

asked 2014-04-03 22:13:13 +0000

anonymous user

Anonymous

How can I define when certain colors are active in i3blocks? For example, when ethernet isn't connected it's red. If it is connected it's green.

edit retag flag offensive close merge delete

Comments

Sorry, I think you are on the wrong forum. Never heard of i3blocks.

joepd gravatar imagejoepd ( 2014-04-04 19:12:37 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-03 23:19:31 +0000

SuperZanti gravatar image

Add support for short_text and color: Now a block command may return 3 lines. If so, they will be:

  1. the full_text
  2. the short_text
  3. the color

For example, a script setting a fulltext in blue but no shorttext would look like:

echo "Here's my label"
echo
echo \#0000FF
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-03 22:13:13 +0000

Seen: 714 times

Last updated: Apr 03 '14