/* See LICENSE file for copyright and license details. */ /* {} will be substituted with the actual argument when the rule is executed */ struct rule rules[] = { { .regex = "\\.(png|jpg|gif)$", .file = "catimg", .argv = { "catimg", "{}", NULL} }, { .regex = "\\.(html|svg)$", .file = "lynx", .argv = { "lynx", "{}", NULL } }, { .regex = "\\.pdf$", .file = "pdfless", .argv = { "pdfless", "{}", NULL} }, { .regex = "\\.epub$", .file = "epub.sh", .argv = { "epub.sh", "{}", NULL} }, { .regex = "\\.sh$", .file = "sh", .argv = { "sh", "{}", NULL} }, { .regex = ".", .file = "less", .argv = { "less", "{}", NULL } }, };