X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=config.def.h;h=07a22ed9610a731ebf043385e3ed653d7fc86902;hp=b10c730b3a8a02878f0622584c17e5c2c59ad0ef;hb=f4a6c20f464df79a9b15b4a2a11daaa7a06c60a0;hpb=fe3fb82d29bd4c3b2194aa7b66733de4c8cd2161 diff --git a/config.def.h b/config.def.h index b10c730..07a22ed 100644 --- a/config.def.h +++ b/config.def.h @@ -9,10 +9,14 @@ static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=fals static int borderpx = 2; static char shell[] = "/bin/sh"; -/* double-click timeout (in milliseconds) between clicks for selection */ +/* timeouts (in milliseconds) */ static unsigned int doubleclicktimeout = 300; static unsigned int tripleclicktimeout = 600; +/* frames per second st should at maximum draw to the screen */ +static unsigned int xfps = 60; +static unsigned int actionfps = 30; + /* TERM value */ static char termname[] = "st-256color"; @@ -100,6 +104,12 @@ static Shortcut shortcuts[] = { */ static KeySym mappedkeys[] = { -1 }; +/* + * Which bits of the state should be ignored. By default the state bit for the + * keyboard layout (XK_SWITCH_MOD) is ignored. + */ +uint ignoremod = XK_SWITCH_MOD; + /* key, mask, output, keypad, cursor, crlf */ static Key key[] = { /* keysym mask string keypad cursor crlf */ @@ -138,8 +148,8 @@ static Key key[] = { { XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0, 0}, { XK_KP_Delete, ShiftMask, "\033[2K", +1, 0, 0}, { XK_KP_Delete, ShiftMask, "\033[3;2~", -1, 0, 0}, - { XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0, 0}, - { XK_KP_Delete, XK_ANY_MOD, "\033[P", +1, 0, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0}, + { XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0}, { XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0, 0}, { XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0, 0}, { XK_KP_Enter, XK_ANY_MOD, "\033OM", +2, 0, 0}, @@ -194,8 +204,8 @@ static Key key[] = { { XK_Delete, ControlMask, "\033[3;5~", +1, 0, 0}, { XK_Delete, ShiftMask, "\033[2K", +1, 0, 0}, { XK_Delete, ShiftMask, "\033[3;2~", -1, 0, 0}, - { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0, 0}, - { XK_Delete, XK_ANY_MOD, "\033[P", +1, 0, 0}, + { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0, 0}, + { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0}, { XK_Home, ShiftMask, "\033[1;2H", 0, 0, 0}, { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0}, { XK_Home, XK_ANY_MOD, "\033[1~", 0, +1, 0},