rofi: optimize sizing

This commit is contained in:
Colin 2024-03-03 07:36:33 +00:00
parent 979d07d693
commit 0affeb098a

View File

@ -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%;
}