1 /* See LICENSE file for copyright and license details.*/
9 static const uint16_t dir_b
= TB_DEFAULT
;
10 static const uint16_t dir_f
= 33;
11 static const uint16_t file_b
= TB_DEFAULT
;
12 static const uint16_t file_f
= TB_DEFAULT
;
13 static const uint16_t frame_b
= TB_DEFAULT
;
14 static const uint16_t frame_f
= TB_DEFAULT
;
15 static const uint16_t other_b
= TB_DEFAULT
;
16 static const uint16_t other_f
= 3;
17 static const uint16_t pane_l_b
= TB_DEFAULT
;
18 static const uint16_t pane_l_f
= 166;
19 static const uint16_t pane_r_b
= TB_DEFAULT
;
20 static const uint16_t pane_r_f
= 5;
21 static const uint16_t search_b
= 166;
22 static const uint16_t search_f
= 255;
23 static const uint16_t status_b
= 234;
24 static const uint16_t status_f
= TB_DEFAULT
;
27 static Bookmark bmarks
[] = {
30 {'u', "/usr/local/bin"},
34 static const char *images
[] = { "bmp", "jpg", "jpeg", "png", "gif", "xpm" };
35 static const char *web
[] = { "htm", "html" };
36 static const char *pdf
[] = { "epub", "pdf" };
37 static const char *videos
[] = { "ac3", "avi", "divx", "flc", "fli", "flv",
38 "m2v", "m4a", "m4v", "mkv", "mov", "mp3", "mp4", "mpeg", "mpg",
39 "mts", "opus", "qt", "ra", "rm", "ts", "wav", "webm", "wma", "wmv" };
40 static const char *documents
[] = { "odt", "doc", "docx", "xls", "xlsx", "odp",
41 "ods", "pptx", "odg" };
42 static const char *arts
[] = { "xcf" };
44 static Rule rules
[] = {
45 {"mpv", videos
, LEN(videos
) },
46 {"sxiv", images
, LEN(images
) },
47 {"firefox", web
, LEN(web
) },
48 {"mupdf", pdf
, LEN(pdf
) },
49 {"libreoffice", documents
, LEN(documents
) },
50 {"gimp", arts
, LEN(arts
) },
53 static const size_t move_ud
= 10; /* ctrl U, ctrl D movement */
54 static const mode_t new_dir_perm
= 0755;
55 static const char dt_fmt
[] = "%d/%m %I:%M%p"; /* date time format */
58 static const uint32_t u_cne
= 0x2510;
59 static const uint32_t u_cnw
= 0x250C;
60 static const uint32_t u_cse
= 0x2518;
61 static const uint32_t u_csw
= 0x2514;
62 static const uint32_t u_hl
= 0x2500;
63 static const uint32_t u_mn
= 0x252C;
64 static const uint32_t u_ms
= 0x2534;
65 static const uint32_t u_vl
= 0x2502;