The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.

# I3bar-conky - is positioning the output possible?

Hi!

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 close merge delete

Sort by » oldest newest most voted

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.

more

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

#!/bin/sh
conky | while :
do
echo "\$line  " || exit 1
done


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.

more