diff options
author | sin <sin@2f30.org> | 2019-08-23 16:00:03 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2019-08-24 11:25:43 +0100 |
commit | 58b6b5ba9a2e0ff758ae575cb04c98177a77a7f3 (patch) | |
tree | 5f8df0d8bf45a54d14e4328139e7e1afe8e3b97b /nopenconf.def.h | |
parent | 2b8e1ac48a355d0185665bd9f4b1c30d2747b1dd (diff) | |
download | noice-58b6b5ba9a2e0ff758ae575cb04c98177a77a7f3.tar.gz |
Rename struct assoc to struct rule
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 } }, |