Skip to content

Instantly share code, notes, and snippets.

@bbtdev
Created March 22, 2021 10:23
Show Gist options
  • Save bbtdev/277cec3bbc11045f1ecd267c2e22a067 to your computer and use it in GitHub Desktop.
Save bbtdev/277cec3bbc11045f1ecd267c2e22a067 to your computer and use it in GitHub Desktop.
rebind zoom to ctrl shift +/- font and font size
diff -u a/config.def.h b/config.def.h
--- a/config.def.h 2020-06-19 12:29:45.000000000 +0300
+++ b/config.def.h 2021-03-22 12:19:09.951353976 +0200
@@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
+static char *font = "RobotoMono Nerd Font Mono:pixelsize=30:antialias=true:autohint=true";
static int borderpx = 2;
/*
@@ -191,8 +191,8 @@
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
- { TERMMOD, XK_Prior, zoom, {.f = +1} },
- { TERMMOD, XK_Next, zoom, {.f = -1} },
+ { TERMMOD, XK_plus, zoom, {.f = +1} },
+ { TERMMOD, XK_underscore, zoom, {.f = -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment