diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-28 13:25:53 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-28 13:25:53 +0100 |
commit | 53eda6d525899b661a961c97a9e9801ffb583cdb (patch) | |
tree | dcaf4aedf7d7b21afdf989de3a392b1b75e361ad /config.def.h | |
parent | 91804d72273e18ab9f4022f3dc1cc7d90eb3fea0 (diff) | |
download | st-53eda6d525899b661a961c97a9e9801ffb583cdb.tar.gz st-53eda6d525899b661a961c97a9e9801ffb583cdb.tar.bz2 |
Adding a more flexible fontstring handling, shortcuts and a zoom function.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 5c4c518..67b1316 100644 --- a/config.def.h +++ b/config.def.h @@ -1,4 +1,8 @@ +/* + * 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 */ @@ -73,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" @@ -81,3 +94,4 @@ static Key key[] = { #define TRIPLECLICK_TIMEOUT (2*DOUBLECLICK_TIMEOUT) #define TAB 8 + |