nopenconf.def.h - noice - small file browser (mirror / fork from 2f30.org)
HTML git clone git://git.codemadness.org/noice
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
nopenconf.def.h (640B)
---
1 /* See LICENSE file for copyright and license details. */
2
3 /* {} will be substituted with the actual argument when the rule is executed */
4 struct rule rules[] = {
5 { .regex = "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", .file = "mpv", .argv = { "mpv", "{}", NULL } },
6 { .regex = "\\.(png|jpg|gif)$", .file = "sxiv", .argv = { "sxiv", "{}", NULL} },
7 { .regex = "\\.(html|svg)$", .file = "firefox", .argv = { "firefox", "{}", NULL } },
8 { .regex = "\\.pdf$", .file = "mupdf", .argv = { "mupdf", "{}", NULL} },
9 { .regex = "\\.sh$", .file = "sh", .argv = { "sh", "{}", NULL} },
10 { .regex = ".", .file = "less", .argv = { "less", "{}", NULL } },
11 };