noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | 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 };