From 066416f76425a2784ef880826f47ad7b5fac7d43 Mon Sep 17 00:00:00 2001 From: Nikita Langer Date: Sun, 31 May 2026 15:33:29 +0200 Subject: Cycle Fonts --- config.def.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index e0913e4..6547948 100644 --- a/config.def.h +++ b/config.def.h @@ -15,7 +15,12 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "JetBrains Mono Nerd Font Mono:pixelsize=18:antialias=true:autohint=true"; +// static char *font = "JetBrains Mono Nerd Font Mono:pixelsize=18:antialias=true:autohint=true"; +static char *fonts[] = { + "JetBrains Mono Nerd Font Mono:pixelsize=18:antialias=true:autohint=true", + "SF Mono:pixelsize=18:antialias=true:autohint=true", +}; +static size_t currentfont = 0; static int borderpx = 2; /* @@ -262,6 +267,7 @@ static Shortcut shortcuts[] = { { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, { ControlMask, XK_plus, zoom, {.f = +1} }, { ControlMask, XK_minus, zoom, {.f = -1} }, + { TERMMOD, XK_S, cyclefonts, {} }, komputer({ TERMMOD, XK_Prior, zoom, {.f = +1} },) komputer({ TERMMOD, XK_Next, zoom, {.f = -1} },) { TERMMOD, XK_Home, zoomreset, {.f = 0} }, -- cgit