config.def.h (1851B)
1/* See LICENSE file for copyright and license details. */ 2 3static 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 11static const char *colors[] = { 12 "#000000", /* foreground color */ 13 "#FFFFFF", /* background color */ 14}; 15 16static const float linespacing = 1.4; 17 18/* how much screen estate is to be used at max for the content */ 19static const float usablewidth = 0.75; 20static const float usableheight = 0.75; 21 22static Mousekey mshortcuts[] = { 23 /* button function argument */ 24 { Button1, advance, {.i = +1} }, 25 { Button3, advance, {.i = -1} }, 26 { Button4, advance, {.i = -1} }, 27 { Button5, advance, {.i = +1} }, 28}; 29 30static Shortcut shortcuts[] = { 31 /* keysym function argument */ 32 { XK_Escape, quit, {0} }, 33 { XK_q, quit, {0} }, 34 { XK_Right, advance, {.i = +1} }, 35 { XK_Left, advance, {.i = -1} }, 36 { XK_Return, advance, {.i = +1} }, 37 { XK_space, advance, {.i = +1} }, 38 { XK_BackSpace, advance, {.i = -1} }, 39 { XK_l, advance, {.i = +1} }, 40 { XK_h, advance, {.i = -1} }, 41 { XK_j, advance, {.i = +1} }, 42 { XK_k, advance, {.i = -1} }, 43 { XK_Down, advance, {.i = +1} }, 44 { XK_Up, advance, {.i = -1} }, 45 { XK_Next, advance, {.i = +1} }, 46 { XK_Prior, advance, {.i = -1} }, 47 { XK_n, advance, {.i = +1} }, 48 { XK_p, advance, {.i = -1} }, 49 { XK_r, reload, {0} }, 50}; 51 52static Filter filters[] = { 53 { "\\.ff$", "cat" }, 54 { "\\.ff.bz2$", "bunzip2" }, 55 { "\\.[a-z0-9]+$", "2ff" }, 56};