rofi: optimize sizing
This commit is contained in:
@@ -99,14 +99,17 @@ window {
|
|||||||
/* one may even read environment variables (useful for knowing if screen is rotated?) */
|
/* one may even read environment variables (useful for knowing if screen is rotated?) */
|
||||||
/* `calc(... min 100%)` ensures it never overflows */
|
/* `calc(... min 100%)` ensures it never overflows */
|
||||||
/* rofi is aware of the top bar (waybar) and any virtual keyboards,
|
/* 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%);
|
width: calc(960 min 100%);
|
||||||
/* 520px @ font size 20 gives 13 rows + filter */
|
/* 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 the *north* edge of the window at the *north* location of the screen */
|
||||||
anchor: north;
|
anchor: north;
|
||||||
location: north;
|
location: north;
|
||||||
y-offset: 116;
|
y-offset: 11.2%;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user