diff options
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/config.def.h b/config.def.h index a07c215..cb52960 100644 --- a/config.def.h +++ b/config.def.h @@ -3,12 +3,12 @@ #define CURSR " > " #define EMPTY " " -int mtimeorder = 0; /* Set to 1 to sort by time modified */ -int sizeorder = 0; /* Set to 1 to sort by file size */ -int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ -int showhidden = 0; /* Set to 1 to show hidden files by default */ -int showdetail = 0; /* Set to show additional file info */ -char *idlecmd = "rain"; /* The screensaver program */ +static int mtimeorder = 0; /* Set to 1 to sort by time modified */ +static int sizeorder = 0; /* Set to 1 to sort by file size */ +static int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ +static int showhidden = 0; /* Set to 1 to show hidden files by default */ +static int showdetail = 0; /* Set to show additional file info */ +static char *idlecmd = "rain"; /* The screensaver program */ struct assoc assocs[] = { //{ "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mpv" }, @@ -23,60 +23,60 @@ struct assoc assocs[] = { struct key bindings[] = { /* Quit */ - { 'q', SEL_QUIT }, + { 'q', SEL_QUIT, "\0", "\0" }, /* Back */ - { KEY_BACKSPACE, SEL_BACK }, - { KEY_LEFT, SEL_BACK }, - { 'h', SEL_BACK }, - { CONTROL('H'), SEL_BACK }, + { KEY_BACKSPACE, SEL_BACK, "\0", "\0" }, + { KEY_LEFT, SEL_BACK, "\0", "\0" }, + { 'h', SEL_BACK, "\0", "\0" }, + { CONTROL('H'), SEL_BACK, "\0", "\0" }, /* Inside */ - { KEY_ENTER, SEL_GOIN }, - { '\r', SEL_GOIN }, - { KEY_RIGHT, SEL_GOIN }, - { 'l', SEL_GOIN }, + { KEY_ENTER, SEL_GOIN, "\0", "\0" }, + { '\r', SEL_GOIN, "\0", "\0" }, + { KEY_RIGHT, SEL_GOIN, "\0", "\0" }, + { 'l', SEL_GOIN, "\0", "\0" }, /* Filter */ - { '/', SEL_FLTR }, - { '&', SEL_FLTR }, + { '/', SEL_FLTR, "\0", "\0" }, + { '&', SEL_FLTR, "\0", "\0" }, /* Next */ - { 'j', SEL_NEXT }, - { KEY_DOWN, SEL_NEXT }, - { CONTROL('N'), SEL_NEXT }, + { 'j', SEL_NEXT, "\0", "\0" }, + { KEY_DOWN, SEL_NEXT, "\0", "\0" }, + { CONTROL('N'), SEL_NEXT, "\0", "\0" }, /* Previous */ - { 'k', SEL_PREV }, - { KEY_UP, SEL_PREV }, - { CONTROL('P'), SEL_PREV }, + { 'k', SEL_PREV, "\0", "\0" }, + { KEY_UP, SEL_PREV, "\0", "\0" }, + { CONTROL('P'), SEL_PREV, "\0", "\0" }, /* Page down */ - { KEY_NPAGE, SEL_PGDN }, - { CONTROL('D'), SEL_PGDN }, + { KEY_NPAGE, SEL_PGDN, "\0", "\0" }, + { CONTROL('D'), SEL_PGDN, "\0", "\0" }, /* Page up */ - { KEY_PPAGE, SEL_PGUP }, - { CONTROL('U'), SEL_PGUP }, + { KEY_PPAGE, SEL_PGUP, "\0", "\0" }, + { CONTROL('U'), SEL_PGUP, "\0", "\0" }, /* Home */ - { KEY_HOME, SEL_HOME }, - { CONTROL('A'), SEL_HOME }, - { '^', SEL_HOME }, + { KEY_HOME, SEL_HOME, "\0", "\0" }, + { CONTROL('A'), SEL_HOME, "\0", "\0" }, + { '^', SEL_HOME, "\0", "\0" }, /* End */ - { KEY_END, SEL_END }, - { CONTROL('E'), SEL_END }, - { '$', SEL_END }, + { KEY_END, SEL_END, "\0", "\0" }, + { CONTROL('E'), SEL_END, "\0", "\0" }, + { '$', SEL_END, "\0", "\0" }, /* Change dir */ - { 'c', SEL_CD }, - { '~', SEL_CDHOME }, + { 'c', SEL_CD, "\0", "\0" }, + { '~', SEL_CDHOME, "\0", "\0" }, /* Toggle hide .dot files */ - { '.', SEL_TOGGLEDOT }, + { '.', SEL_TOGGLEDOT, "\0", "\0" }, /* Detailed listing */ - { 'd', SEL_DETAIL }, + { 'd', SEL_DETAIL, "\0", "\0" }, /* Toggle sort by size */ - { 's', SEL_FSIZE }, + { 's', SEL_FSIZE, "\0", "\0" }, /* Toggle sort by time */ - { 't', SEL_MTIME }, - { CONTROL('L'), SEL_REDRAW }, + { 't', SEL_MTIME, "\0", "\0" }, + { CONTROL('L'), SEL_REDRAW, "\0", "\0" }, /* Copy currently selected file path */ - { CONTROL('K'), SEL_COPY }, + { CONTROL('K'), SEL_COPY, "\0", "\0" }, /* Run command */ - { 'z', SEL_RUN, "top" }, - { '!', SEL_RUN, "sh", "SHELL" }, + { 'z', SEL_RUN, "top", "\0" }, + { '!', SEL_RUN, "sh", "SHELL" }, /* Run command with argument */ - { 'e', SEL_RUNARG, "vi", "EDITOR" }, - { 'p', SEL_RUNARG, "less", "PAGER" }, + { 'e', SEL_RUNARG, "vi", "EDITOR" }, + { 'p', SEL_RUNARG, "less", "PAGER" }, }; |