aboutsummaryrefslogtreecommitdiffstats
path: root/nopenconf.def.h
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2019-08-23 16:00:03 +0100
committersin <sin@2f30.org>2019-08-24 11:25:43 +0100
commit58b6b5ba9a2e0ff758ae575cb04c98177a77a7f3 (patch)
tree5f8df0d8bf45a54d14e4328139e7e1afe8e3b97b /nopenconf.def.h
parent2b8e1ac48a355d0185665bd9f4b1c30d2747b1dd (diff)
downloadnoice-58b6b5ba9a2e0ff758ae575cb04c98177a77a7f3.tar.gz
Rename struct assoc to struct rule
Diffstat (limited to 'nopenconf.def.h')
-rw-r--r--nopenconf.def.h4
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 } },
Un proyecto texto-plano.xyz