2014-06-22 22:39:21 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2015-04-20 20:20:16 +00:00
|
|
|
static char *fontfallbacks[] = {
|
2015-11-17 01:07:56 +00:00
|
|
|
"dejavu sans",
|
2015-11-01 17:09:22 +00:00
|
|
|
"roboto",
|
|
|
|
"ubuntu",
|
2015-04-20 20:20:16 +00:00
|
|
|
};
|
2015-11-17 00:39:40 +00:00
|
|
|
#define NUMFONTSCALES 42
|
2015-04-20 20:20:16 +00:00
|
|
|
#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
|
2014-06-22 22:39:21 +00:00
|
|
|
|
2016-05-21 19:39:58 +00:00
|
|
|
static const char *colors[] = {
|
|
|
|
"#000000", /* foreground color */
|
|
|
|
"#FFFFFF", /* background color */
|
|
|
|
};
|
2015-11-04 00:43:13 +00:00
|
|
|
|
2015-11-07 22:54:23 +00:00
|
|
|
static const float linespacing = 1.4;
|
|
|
|
|
2014-06-22 22:39:21 +00:00
|
|
|
/* how much screen estate is to be used at max for the content */
|
2015-11-11 17:41:51 +00:00
|
|
|
static const float usablewidth = 0.75;
|
|
|
|
static const float usableheight = 0.75;
|
2014-06-22 22:39:21 +00:00
|
|
|
|
|
|
|
static Mousekey mshortcuts[] = {
|
|
|
|
/* button function argument */
|
|
|
|
{ Button1, advance, {.i = +1} },
|
2015-11-19 13:13:25 +00:00
|
|
|
{ Button3, advance, {.i = -1} },
|
|
|
|
{ Button4, advance, {.i = -1} },
|
|
|
|
{ Button5, advance, {.i = +1} },
|
2014-06-22 22:39:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static Shortcut shortcuts[] = {
|
|
|
|
/* keysym function argument */
|
2015-11-18 02:01:50 +00:00
|
|
|
{ XK_Escape, quit, {0} },
|
2014-06-22 22:39:21 +00:00
|
|
|
{ XK_q, quit, {0} },
|
|
|
|
{ XK_Right, advance, {.i = +1} },
|
|
|
|
{ XK_Left, advance, {.i = -1} },
|
|
|
|
{ XK_Return, advance, {.i = +1} },
|
2015-11-17 05:42:34 +00:00
|
|
|
{ XK_space, advance, {.i = +1} },
|
2014-06-22 22:39:21 +00:00
|
|
|
{ XK_BackSpace, advance, {.i = -1} },
|
2014-06-22 23:55:25 +00:00
|
|
|
{ XK_l, advance, {.i = +1} },
|
|
|
|
{ XK_h, advance, {.i = -1} },
|
|
|
|
{ XK_j, advance, {.i = +1} },
|
|
|
|
{ XK_k, advance, {.i = -1} },
|
2014-06-29 21:45:04 +00:00
|
|
|
{ XK_Down, advance, {.i = +1} },
|
|
|
|
{ XK_Up, advance, {.i = -1} },
|
|
|
|
{ XK_Next, advance, {.i = +1} },
|
|
|
|
{ XK_Prior, advance, {.i = -1} },
|
2015-11-26 14:22:01 +00:00
|
|
|
{ XK_n, advance, {.i = +1} },
|
|
|
|
{ XK_p, advance, {.i = -1} },
|
2017-09-02 17:30:11 +00:00
|
|
|
{ XK_r, reload, {0} },
|
2014-06-22 22:39:21 +00:00
|
|
|
};
|
2015-11-18 10:41:02 +00:00
|
|
|
|
|
|
|
static Filter filters[] = {
|
2016-07-14 09:23:17 +00:00
|
|
|
{ "\\.ff$", "cat" },
|
|
|
|
{ "\\.ff.bz2$", "bunzip2" },
|
|
|
|
{ "\\.[a-z0-9]+$", "2ff" },
|
2015-11-18 10:41:02 +00:00
|
|
|
};
|