From ad31b13cb66f65431189f0ade323b9634cc26e8c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 26 Mar 2015 10:03:30 +0100 Subject: [PATCH] update default fonts for i3-{input,config-wizard,nagbar} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ve done this a while ago in i3.config itself, but the tools in question aren’t hooked up to that setting, so we need to do it here as well. --- i3-config-wizard/main.c | 4 ++-- i3-input/main.c | 2 +- i3-nagbar/main.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index d94ad96f..f052d6d5 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -760,8 +760,8 @@ static void finish() { int main(int argc, char *argv[]) { config_path = resolve_tilde("~/.i3/config"); socket_path = getenv("I3SOCK"); - char *pattern = "-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1"; - char *patternbold = "-misc-fixed-bold-r-normal--13-120-75-75-C-70-iso10646-1"; + char *pattern = "pango:monospace 8"; + char *patternbold = "pango:monospace bold 8"; int o, option_index = 0; static struct option long_options[] = { diff --git a/i3-input/main.c b/i3-input/main.c index 1f9cfe04..996fc0ea 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -317,7 +317,7 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press int main(int argc, char *argv[]) { format = strdup("%s"); socket_path = getenv("I3SOCK"); - char *pattern = sstrdup("-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1"); + char *pattern = sstrdup("pango:monospace 8"); int o, option_index = 0; static struct option long_options[] = { diff --git a/i3-nagbar/main.c b/i3-nagbar/main.c index 16559c96..805066f8 100644 --- a/i3-nagbar/main.c +++ b/i3-nagbar/main.c @@ -322,7 +322,7 @@ int main(int argc, char *argv[]) { argv0 = argv[0]; - char *pattern = sstrdup("-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1"); + char *pattern = sstrdup("pango:monospace 8"); int o, option_index = 0; enum { TYPE_ERROR = 0, TYPE_WARNING = 1 } bar_type = TYPE_ERROR;