aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-13 23:53:18 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-13 23:53:36 -0500
commitdff68f0630e06705ece00cc2b9fdafb3c4888b31 (patch)
treef524b2f4dc744b881e58708902e0026993599cc9
parent94b75fc1aab8fa121b79b67d8bb74de5be80d48a (diff)
downloaddwm-dff68f0630e06705ece00cc2b9fdafb3c4888b31.tar.gz
dwm-dff68f0630e06705ece00cc2b9fdafb3c4888b31.tar.xz
Add additional shortcuts to launch terminals with larger fonts
-rw-r--r--config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h b/config.h
index 52c64a6..63afa43 100644
--- a/config.h
+++ b/config.h
@@ -1,5 +1,8 @@
/* See LICENSE file for copyright and license details. */
+#define PROFONT_LARGE "ProfontOTB:pixelsize=14:antialias=false:autohint=false"
+#define PROFONT_SMALL "ProfontOTB:pixelsize=10:antialias=false:autohint=false"
+#define ROBOTO_YUGE "RobotoMono-Regular:pixelsize=18:antialias=true:autohint=true"
#define FONT_SCIENTIFICA "scientifica:pixelsize=10:antialias=false:autohint=false"
#define FONT_CURIE "curieMedium:pixelsize=10:antialias=false:autohint=false"
@@ -79,6 +82,8 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", DMENU_FLAGS, NULL };
static const char *termcmd[] = { "st", NULL };
+static const char *termcmdLarge[] = { "st", "-f", PROFONT_LARGE, NULL };
+static const char *termcmdYuge[] = { "st", "-f", ROBOTO_YUGE, NULL };
static const char *passcmd[] = { "passmenu", DMENU_FLAGS, NULL };
static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL };
static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL };
@@ -90,6 +95,8 @@ static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmdLarge } },
+ { MODKEY|ControlMask|ShiftMask, XK_Return, spawn, {.v = termcmdYuge } },
{ MODKEY, XK_p, spawn, {.v = passcmd } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = screenshot_cmd } },
{ MODKEY, XK_o, spawn, {.v = passcmd_type } },