X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=67b1316d623d9af12799925538c4af9250792154;hb=c5dd7fb377d4bfe9988ef150a55b4a3756d09524;hp=de2942749f0c75e3cf075a9e31f831b1d71ff60e;hpb=375b6e5b175ce0a01d47288e94e9c4a8acc3939a;p=st.git diff --git a/config.def.h b/config.def.h index de29427..67b1316 100644 --- a/config.def.h +++ b/config.def.h @@ -1,8 +1,9 @@ -#define FONT "Liberation 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,6 +77,15 @@ static Key key[] = { { XK_F12, XK_NO_MOD, "\033[24~" }, }; +/* Internal shortcuts. */ +#define MODKEY Mod1Mask + +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" @@ -84,3 +94,4 @@ static Key key[] = { #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT) #define TAB 8 +