JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Removing the now senseless comment in config.def.h. Thanks to bnwe!
[st.git] / config.def.h
index 7746eaf..a8f48ea 100644 (file)
@@ -1,9 +1,5 @@
 
-#define FONT "-*-*-medium-r-*-*-*-120-75-75-*-70-*-*"
-#define BOLDFONT "-*-*-bold-r-*-*-*-120-75-75-*-70-*-*"
-/* If italic is not available, fall back to bold. */
-#define ITALICFONT "-*-*-medium-o-*-*-*-120-75-75-*-70-*-*," BOLDFONT
-#define ITALICBOLDFONT "-*-*-bold-o-*-*-*-120-75-75-*-70-*-*," BOLDFONT
+#define FONT "Liberation Mono:pixelsize=12:antialias=false:autohint=false"
 
 /* Space in pixels around the terminal buffer */
 #define BORDER 2
@@ -77,19 +73,21 @@ static Key key[] = {
        { XK_F12,       XK_NO_MOD, "\033[24~" },
 };
 
-/* Set TERM to this */
-#define TNAME "st-256color"
+/* Internal shortcuts. */
+#define MODKEY Mod1Mask
 
-/* Line drawing characters (sometime specific to each font...) */
-static char gfx[] = {
-       ['f'] = 'o',
-       ['g'] = '+',
-       ['i'] = '#',
-       [255] = 0,
+static Shortcut shortcuts[] = {
+       /* modifier             key             function        argument */
+       { MODKEY|ShiftMask,     XK_Prior,       xzoom,          {.i = +1} },
+       { MODKEY|ShiftMask,     XK_Next,        xzoom,          {.i = -1} },
 };
 
+/* Set TERM to this */
+#define TNAME "st-256color"
+
 /* double-click timeout (in milliseconds) between clicks for selection */
 #define DOUBLECLICK_TIMEOUT 300
 #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT)
 
 #define TAB 8
+