26

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 Answers1

41

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).

waterproof
  • 161
  • 7
decodebytes
  • 546
  • 5
  • 4
  • 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 **r**estarted `i3` as well. Should I create and add it to another, say `i3status` or `i3bar` file, and what is the meaning of the open `` tag? I want to know where am I being wrong? –  Nov 16 '16 at 18:51
  • 1
    I removed the misadded `:` and it worked. I'm blaming [tag: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 `` tag. –  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. – decodebytes Nov 17 '16 at 09:35
  • 1
    In addition to answer, related part of the official doc: https://i3wm.org/docs/4.12/userguide.html#i3bar_position –  Sep 18 '19 at 09:39
  • Mod + Shift + C (read config file) is enough, no need to restart – Filipe Madureira Jan 28 '22 at 04:53