Use .Xresources to scale fonts for HiDPI screens

This commit is contained in:
2024-06-07 00:19:44 +01:00
parent 341ab21eb0
commit e3387ee785
6 changed files with 6 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"JetBrainsMono NF:size=20"
"JetBrainsMono NF:size=10"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {

View File

@@ -13,7 +13,7 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display
static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "JetBrainsMono NF:size=20" };
static const char *fonts[] = { "JetBrainsMono NF:size=10" };
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { "#ebdbb2", "#282828", "#1d2021" },

View File

@@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "JetBrainsMono NF:pixelsize=24:antialias=true:autohint=true";
static char *font = "JetBrainsMono NF:size=12:antialias=true:autohint=true";
static int borderpx = 2;
/*

View File

@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "monospace:size=9";
static const char font[] = "JetBrainsMono NF:size=10";
static const char* normbgcolor = "#222222";
static const char* normfgcolor = "#cccccc";
static const char* selbgcolor = "#555555";