X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.def.h;h=67b1316d623d9af12799925538c4af9250792154;hb=71b09ec4f172da9a89be2add54b5b94da8af3bea;hp=1f0291ea4962fc0bb0dcdf5ca5d52885c44511aa;hpb=246d704ba0c1d83b3eed2388483300687276b797;p=st.git diff --git a/config.def.h b/config.def.h index 1f0291e..67b1316 100644 --- a/config.def.h +++ b/config.def.h @@ -1,8 +1,9 @@ -#define FONT "DejaVu Sans Mono:pixelsize=12:antialias=true:autohint=true" -#define BOLDFONT FONT ":weight=bold" -#define ITALICFONT FONT ":slant=italic,oblique" -#define ITALICBOLDFONT BOLDFONT ":slant=italic,oblique" +/* + * Do not include the »pixelsize« parameter in your font definition. It is + * used to calculate zooming. + */ +#define FONT "Liberation Mono:pixelsize=12:antialias=false:autohint=false" /* Space in pixels around the terminal buffer */ #define BORDER 2 @@ -76,19 +77,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 +