The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

I3bar-conky - is positioning the output possible?

asked 2014-11-27 07:54:27 +0000

Unknownentity gravatar image


I'm using I3bar with Conky as status command. Everything works as expected.

How would I go about moving the whole status bar a bit to the left? Is it possible to specify X and Y positions with i3bar+conky?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-27 16:08:52 +0000

Airblader gravatar image

As an alternative to the pipe script solution, you can change your .conkyrc by adding a dummy element and using i3bar's separator properties:

,{ \
  "full_text": "Last Element", \
  "separator": false, \
  "separator_block_width": 50 \
} \
,{ \
  "full_text": "" \
} \

The 50 will change the widht of the gap to the right. Of course, instead of using separator_block_width you can also just use spaces in the dummy element's full_text property. You'll still need separator: false, though.

One advantage to is that you don't need another shell level in your chain.

By the way: the \ are used to turn the JSON into one physical line which improves the performance of i3bar's parsing by quite a bit.

edit flag offensive delete link more

answered 2014-11-27 09:34:28 +0000

Adaephon gravatar image

updated 2014-11-27 09:35:10 +0000

i3bar itself has no options for positioning the status output. It is always on the right, either next to edge of the screen or next to the tray.

I do not know what capabilities conky has to move things around, but the following wrapper script should do as a workaround

conky | while :
    read line
    echo "$line  " || exit 1

This just adds two spaces on the right. The script is inspired by (ripped off) the instructions for using external commands in the i3status manpage.

edit flag offensive delete link more

Question Tools


Asked: 2014-11-27 07:54:27 +0000

Seen: 303 times

Last updated: Nov 27 '14