2014-06-23 00:39:21 +02:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2015-04-20 22:20:16 +02:00
|
|
|
static char *fontfallbacks[] = {
|
|
|
|
"dejavu",
|
2015-11-01 18:09:22 +01:00
|
|
|
"roboto",
|
|
|
|
"ubuntu",
|
2015-04-20 22:20:16 +02:00
|
|
|
};
|
|
|
|
#define NUMFONTSCALES 30
|
|
|
|
#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
|
2014-06-23 00:39:21 +02:00
|
|
|
|
|
|
|
/* how much screen estate is to be used at max for the content */
|
|
|
|
static float usablewidth = 0.75;
|
|
|
|
static float usableheight = 0.75;
|
|
|
|
|
|
|
|
static Mousekey mshortcuts[] = {
|
|
|
|
/* button function argument */
|
|
|
|
{ Button1, advance, {.i = +1} },
|
|
|
|
{ Button2, advance, {.i = -1} },
|
|
|
|
};
|
|
|
|
|
|
|
|
static Shortcut shortcuts[] = {
|
|
|
|
/* keysym function argument */
|
|
|
|
{ XK_q, quit, {0} },
|
|
|
|
{ XK_Right, advance, {.i = +1} },
|
|
|
|
{ XK_Left, advance, {.i = -1} },
|
|
|
|
{ XK_Return, advance, {.i = +1} },
|
|
|
|
{ XK_BackSpace, advance, {.i = -1} },
|
2014-06-23 01:55:25 +02:00
|
|
|
{ XK_l, advance, {.i = +1} },
|
|
|
|
{ XK_h, advance, {.i = -1} },
|
|
|
|
{ XK_j, advance, {.i = +1} },
|
|
|
|
{ XK_k, advance, {.i = -1} },
|
2014-06-29 23:45:04 +02:00
|
|
|
{ XK_Down, advance, {.i = +1} },
|
|
|
|
{ XK_Up, advance, {.i = -1} },
|
|
|
|
{ XK_Next, advance, {.i = +1} },
|
|
|
|
{ XK_Prior, advance, {.i = -1} },
|
2014-06-23 00:39:21 +02:00
|
|
|
};
|