-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.h
77 lines (70 loc) · 3.67 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
static int showbar = 1; /* 0 means no bar */
static int antialiasing = 1; /* 0 means pixelize images */
static int quiet = 0; /* 0 means print warnings */
static int loaddirs = 0; /* 1 means load directories */
static const int winwidth = 800; /* default window width */
static const int winheight = 600; /* default window height */
static const float maxzoom = 800.0; /* max value that zoom can reach (ignored by scaling) */
static const float minzoom = 12.5; /* min value that zoom can reach (ignored by scaling) */
static const char *fonts[] = { "monospace" };
static const ScaleMode scalemodes[] = {
/* symbol arrange function */
{ "down", scaledown }, /* first entry is default */
{ "width", scalewidth },
{ "fit", scalefit },
{ "height", scaleheight },
};
static const int thumbsize = 128; /* thumbnailview size */
static const int thumbpad = 8; /* thumbailview space between images */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[M]", singleview }, /* first entry is default */
{ "===", thumbnailview },
};
static const char *colors[][2] = {
/* fg bg */
[SchemeNorm] = { "#eeeeee", "#005577" },
[SchemeBar] = { "#bbb012", "#411828" },
};
static const Shortcut shortcuts[] = {
/* modifier key function argument */
{ 0, XK_Escape, quit, {0} },
{ 0, XK_q, quit, {0} },
{ 0, XK_b, togglebar, {0} },
{ 0, XK_Return, setlayout, {.v = &layouts[1]} },
{ ShiftMask, XK_Return, setlayout, {.v = &layouts[0]} },
{ 0, XK_space, advance, {.i = +1} },
{ 0, XK_BackSpace, advance, {.i = -1} },
{ 0, XK_bracketright, advance, {.i = +5} },
{ 0, XK_bracketleft, advance, {.i = -5} },
{ 0, XK_p, printfile, {0} },
{ 0, XK_r, reload, {0} },
{ 0, XK_minus, zoom, {.f = -12.5} },
{ 0, XK_equal, zoom, {.f = +12.5} },
{ ShiftMask, XK_equal, set_zoom, {.f = 100} },
{ 0, XK_f, togglefullscreen, {0} },
{ 0, XK_a, toggleantialias, {0} },
{ 0, XK_s, savestate, {0} },
{ 0, XK_u, flipvert, {0} },
{ ShiftMask, XK_u, fliphorz, {0} },
{ 0, XK_k, panvert, {.f = +5} },
{ 0, XK_j, panvert, {.f = -5} },
{ 0, XK_l, panhorz, {.f = +5} },
{ 0, XK_h, panhorz, {.f = -5} },
{ 0, XK_g, first, {0} },
{ ShiftMask, XK_g, last, {0} },
{ ShiftMask, XK_period, rotate, {.i = +1 } },
{ ShiftMask, XK_comma, rotate, {.i = -1 } },
{ 0, XK_backslash, cyclescale, {.i = +1 } },
{ ShiftMask, XK_backslash, cyclescale, {.i = -1 } },
};
static const Mousekey mshortcuts[] = {
/* button function argument */
{ Button1, advance, {.i = +1} },
{ Button2, quit, {0} },
{ Button3, advance, {.i = -1} },
{ Button4, zoom, {.f = +3} },
{ Button5, zoom, {.f = -3} },
};