12

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.

23

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 '16 at 18:51
  • 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 '16 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 '16 at 9:35

Your Answer

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