t* My version of sent
       
   URI git clone git://git.codevoid.de/sent-sdk.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       tconfig.h (1936B)
       ---
            1 /* See LICENSE file for copyright and license details. */
            2 
            3 static char *fontfallbacks[] = {
            4         "dejavu sans",
            5         "roboto",
            6         "ubuntu",
            7 };
            8 #define NUMFONTSCALES 42
            9 #define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
           10 
           11 static const char *colors[] = {
           12         "#226622", /* foreground color */
           13         "#080808", /* background color */
           14 };
           15 
           16 static const float linespacing = 1.4;
           17 
           18 /* how much screen estate is to be used at max for the content */
           19 static const float usablewidth = 0.75;
           20 static const float usableheight = 0.75;
           21 
           22 /* height of the presentation progress bar */
           23 static const int progressheight = 12;
           24 
           25 static Mousekey mshortcuts[] = {
           26         /* button         function        argument */
           27         { Button1,        advance,        {.i = +1} },
           28         { Button3,        advance,        {.i = -1} },
           29         { Button4,        advance,        {.i = -1} },
           30         { Button5,        advance,        {.i = +1} },
           31 };
           32 
           33 static Shortcut shortcuts[] = {
           34         /* keysym         function        argument */
           35         { XK_Escape,      quit,           {0} },
           36         { XK_q,           quit,           {0} },
           37         { XK_Right,       advance,        {.i = +1} },
           38         { XK_Left,        advance,        {.i = -1} },
           39         { XK_Return,      advance,        {.i = +1} },
           40         { XK_space,       advance,        {.i = +1} },
           41         { XK_BackSpace,   advance,        {.i = -1} },
           42         { XK_l,           advance,        {.i = +1} },
           43         { XK_h,           advance,        {.i = -1} },
           44         { XK_j,           advance,        {.i = +1} },
           45         { XK_k,           advance,        {.i = -1} },
           46         { XK_Down,        advance,        {.i = +1} },
           47         { XK_Up,          advance,        {.i = -1} },
           48         { XK_Next,        advance,        {.i = +1} },
           49         { XK_Prior,       advance,        {.i = -1} },
           50         { XK_n,           advance,        {.i = +1} },
           51         { XK_p,           advance,        {.i = -1} },
           52         { XK_r,           reload,         {0} },
           53 };
           54 
           55 static Filter filters[] = {
           56         { "\\.ff$", "cat" },
           57         { "\\.ff.bz2$", "bunzip2" },
           58         { "\\.[a-z0-9]+$", "2ff" },
           59 };