noiceconf.def.h (2888B)
1 /* See LICENSE file for copyright and license details. */ 2 #define CWD "" 3 #define CURSR " > " 4 #define EMPTY " " 5 6 #define NOPEN "nopen" 7 8 int dirorder = 0; /* Set to 1 to sort by directory first */ 9 int mtimeorder = 0; /* Set to 1 to sort by time modified */ 10 int icaseorder = 0; /* Set to 1 to sort by ignoring case */ 11 int versorder = 0; /* Set to 1 to sort by version number */ 12 int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ 13 int showhidden = 0; /* Set to 1 to show hidden files by default */ 14 int usecolor = 0; /* Set to 1 to enable color attributes */ 15 char *idlecmd = "rain"; /* The screensaver program */ 16 17 /* See curs_attr(3) for valid video attributes */ 18 #define CURSR_ATTR A_NORMAL 19 #define DIR_ATTR A_NORMAL | COLOR_PAIR(4) 20 #define LINK_ATTR A_NORMAL | COLOR_PAIR(6) 21 #define SOCK_ATTR A_NORMAL | COLOR_PAIR(1) 22 #define FIFO_ATTR A_NORMAL | COLOR_PAIR(5) 23 #define EXEC_ATTR A_NORMAL | COLOR_PAIR(2) 24 25 /* Colors to use with COLOR_PAIR(n) as attributes */ 26 struct cpair pairs[] = { 27 { .fg = 0, .bg = 0 }, 28 /* pairs start at 1 */ 29 { COLOR_RED, -1 }, 30 { COLOR_GREEN, -1 }, 31 { COLOR_YELLOW, -1 }, 32 { COLOR_BLUE, -1 }, 33 { COLOR_MAGENTA, -1 }, 34 { COLOR_CYAN, -1 }, 35 }; 36 37 struct key bindings[] = { 38 /* Quit */ 39 { 'q', SEL_QUIT }, 40 /* Back */ 41 { KEY_BACKSPACE, SEL_BACK }, 42 { KEY_LEFT, SEL_BACK }, 43 { 'h', SEL_BACK }, 44 { CONTROL('H'), SEL_BACK }, 45 /* Inside */ 46 { KEY_ENTER, SEL_GOIN }, 47 { '\r', SEL_GOIN }, 48 { KEY_RIGHT, SEL_GOIN }, 49 { 'l', SEL_GOIN }, 50 /* Filter */ 51 { '/', SEL_FLTR }, 52 { '&', SEL_FLTR }, 53 /* Next */ 54 { 'j', SEL_NEXT }, 55 { KEY_DOWN, SEL_NEXT }, 56 { CONTROL('N'), SEL_NEXT }, 57 /* Previous */ 58 { 'k', SEL_PREV }, 59 { KEY_UP, SEL_PREV }, 60 { CONTROL('P'), SEL_PREV }, 61 /* Page down */ 62 { KEY_NPAGE, SEL_PGDN }, 63 { CONTROL('D'), SEL_PGDN }, 64 /* Page up */ 65 { KEY_PPAGE, SEL_PGUP }, 66 { CONTROL('U'), SEL_PGUP }, 67 /* Home */ 68 { KEY_HOME, SEL_HOME }, 69 { META('<'), SEL_HOME }, 70 { '^', SEL_HOME }, 71 /* End */ 72 { KEY_END, SEL_END }, 73 { META('>'), SEL_END }, 74 { '$', SEL_END }, 75 /* Change dir */ 76 { 'c', SEL_CD }, 77 { '~', SEL_CDHOME }, 78 /* Toggle hide .dot files */ 79 { '.', SEL_TOGGLEDOT }, 80 /* Toggle sort by directory first */ 81 { 'd', SEL_DSORT }, 82 /* Toggle sort by time */ 83 { 't', SEL_MTIME }, 84 /* Toggle case sensitivity */ 85 { 'i', SEL_ICASE }, 86 /* Toggle sort by version number */ 87 { 'v', SEL_VERS }, 88 { CONTROL('L'), SEL_REDRAW }, 89 /* Run command */ 90 { 'z', SEL_RUN, "top" }, 91 { '!', SEL_RUN, "sh", "SHELL" }, 92 /* Run command with argument */ 93 { 'e', SEL_RUNARG, "vi", "EDITOR" }, 94 { 'p', SEL_RUNARG, "less", "PAGER" }, 95 };