From 00aaee9ff16fba929b8ec629810640b567d78591 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 23 Apr 2017 23:12:54 +0530 Subject: nlay - a highly customizable file handler --- config.def.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 689aab5..28771bf 100644 --- a/config.def.h +++ b/config.def.h @@ -11,18 +11,15 @@ 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[] = { - { "\\.(c|cpp|h|txt|log|sh)$", "vi" }, - { "\\.(avi|mp4|mkv|3gp|mov)$", "mpv" }, - { "\\.(wma|mp3|ogg|flac|m4a)$", "mpv" }, - { "\\.(png|jpg|gif)$", "viewnior" }, - //{ "\\.(html|svg)$", "firefox" }, - { "\\.pdf$", "zathura" }, - //{ "\\.sh$", "sh" }, - //{ ".", "less" }, +static struct assoc assocs[] = { + { "\\.(c|cpp|h|log|md|py|sh|txt)$", "text" }, + { "\\.(3g2|3gp|asf|avi|divx|flv|m2v|m4v|mkv|mov|mp4|mp4v|mpeg|mpg|ogv|qt|rm|rmvb|vob|webm|wmv)$", "video" }, + { "\\.(aac|ac3|amr|flac|m4a|m4b|m4p|mp3|mp4a|ogg|opus|ra|wav|wma)$", "audio" }, + { "\\.(bmp|gif|jpeg|jpg|pbm|pgm|png|svg|tiff|webp)$", "image" }, + { "\\.pdf$", "pdf" }, }; -struct key bindings[] = { +static struct key bindings[] = { /* Quit */ { 'q', SEL_QUIT, "", "" }, { 'Q', SEL_CDQUIT, "", "" }, -- cgit v1.2.3-70-g09d2