diff --git a/hosts/common/programs/rofi/config.rasi b/hosts/common/programs/rofi/config.rasi index fbadf124..ef9f2bd6 100644 --- a/hosts/common/programs/rofi/config.rasi +++ b/hosts/common/programs/rofi/config.rasi @@ -99,14 +99,17 @@ window { /* one may even read environment variables (useful for knowing if screen is rotated?) */ /* `calc(... min 100%)` ensures it never overflows */ /* rofi is aware of the top bar (waybar) and any virtual keyboards, - * so e.g. height: 100% will never overlap those */ + * so e.g. height: 100% will occupy 100% of the height *not* allocated to bars/kbds. + * however with y-offset, it becomes possible to overflow */ width: calc(960 min 100%); /* 520px @ font size 20 gives 13 rows + filter */ - height: calc(520 min 100%); + /* 482px @ font size 20 gives 12 rows + filter */ + /* 446px @ font size 20 gives 11 rows + filter */ + height: calc(446 min 88.8%); /* anchor the *north* edge of the window at the *north* location of the screen */ anchor: north; location: north; - y-offset: 116; + y-offset: 11.2%; }