Skip to content
Dave Davenport edited this page Feb 16, 2016 · 9 revisions

Window positioning in rofi is based on the following three settings:

Location

This sets the anchor point:

1   2   3
8   0   4
7   6   5

So if you want the window to be in the upper right corner, set location to 3.

X, Y Offset

Using the xoffset and yoffset option you can move the window relative to the anchor point (location)

To set the window in the upper right corner at 200 pixels from the top and the left of the screen set:

  • location to 1
  • xoffset to 200
  • yoffset to 200

Examples

Center window

rofi -location 0 -show run

Window positioned below top bar in i3

rofi -location 2 -yoffset 22 -width 100 -show run

Window at top of screen, not showing the border

rofi -location 2 -yoffset -2 -bw 2 -show run
Clone this wiki locally