diff options
Diffstat (limited to 'nopenconf.def.h')
-rw-r--r-- | nopenconf.def.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nopenconf.def.h b/nopenconf.def.h index 58c7569..b1c42f8 100644 --- a/nopenconf.def.h +++ b/nopenconf.def.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ -struct assoc assocs[] = { + +/* {} will be substituted with the actual argument when the rule is executed */ +struct rule rules[] = { { .regex = "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", .file = "mpv", .argv = { "mpv", "{}", NULL } }, { .regex = "\\.(png|jpg|gif)$", .file = "sxiv", .argv = { "sxiv", "{}", NULL} }, { .regex = "\\.(html|svg)$", .file = "firefox", .argv = { "firefox", "{}", NULL } }, |