Commit: 3b4a184c2b08e8ad2df94bbdefe87fb4173c8232 Parent: e0910edfdbb04369d6e02819ed033a22013c4485 Author: Johannes Thyssen Tishman Date: Mon, 15 Apr 2024 10:51:35 +0000 xresources: Base font size on screen resolution It seems that with multiple monitors, WIDTH reports the sum of the width of both monitors. One solution would be to calculate WIDTH / NUM_SCREENS, but for some reason, NUM_SCREENS reports only one screen (dwm screen handling?). Checking for both WIDTH and HEIGHT solves this. Diffstat: M xresources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xresources b/xresources @@ -15,7 +15,7 @@ *color14: #8ec07c *color15: #ebdbb2 -#if WIDTH > 1920 +#if WIDTH > 1920 && HEIGHT > 1200 *faceName: xft:DejaVu Sans Mono:style=Book:pixelsize=24 #else *faceName: xft:DejaVu Sans Mono:style=Book:pixelsize=20