How can I set i3bar of i3 window manager on top of the screen rather than being placed on its default position, that is bottom.

I tried to examine the ~/.config/i3/config file but couldn't work it out by myself.

1 Answer 1


You need to add position top

bar {
        position top
[original contents of "bar" goes here]

After adding this, you will need to refresh which is mod (windows key) + shift + r (unless you have changed it from the default).

  • It doesn't work. I added it into config file, it doubled the bar, then I found and added it inside the already existing bar{} it didn't change anything. And I restarted i3 as well. Should I create and add it to another, say i3status or i3bar file, and what is the meaning of the open <snip> tag? I want to know where am I being wrong?
    – user373230
    Nov 16, 2016 at 18:51
  • 1
    I removed the misadded : and it worked. I'm blaming css for it :P But my questions are still in power, that is if I could add it into a separate i3bar file, and the meaning of unclosing <snip> tag.
    – user373230
    Nov 16, 2016 at 18:54
  • 1
    The snip is just something to show where I deleted out my own config for this post as its not related to the position variable.
    – devnull
    Nov 17, 2016 at 9:35
  • 1
    In addition to answer, related part of the official doc: i3wm.org/docs/4.12/userguide.html#i3bar_position
    – user909596
    Sep 18, 2019 at 9:39
  • Mod + Shift + C (read config file) is enough, no need to restart Jan 28 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy