ambevar-dotfiles/.config/demlo/config.lua

55 lines
1.9 KiB
Lua
Raw Permalink Normal View History

2018-02-26 23:20:46 +01:00
--[[ Demlo configuration file
All the commandline options can get a default value from here.
Commandline values take precedence.
--]]
2014-07-01 09:16:10 +02:00
2018-02-26 23:20:46 +01:00
-- Colors may not work on all terminals.
2016-06-07 21:57:05 +02:00
Color = true
2014-07-01 09:16:10 +02:00
2016-01-11 08:22:25 +01:00
-- Number of cores to use (0 for all).
2016-06-07 21:57:05 +02:00
Cores = 0
2014-07-01 09:16:10 +02:00
2018-02-26 23:20:46 +01:00
--[[ When the destination exit, the "exist" action is taken.
An action is a Lua script which sets the variable 'output.write' to the following possible values:
- "overwrite": overwrite.
- "skip": don't do anything.
- nil (or anything else): append a random suffix to the new file.
The following variable specifies the path or name of the default action script.
--]]
Exist = ''
2016-01-11 08:22:25 +01:00
-- Extensions to look for when a folder is browsed.
2018-02-26 23:20:46 +01:00
-- The following variable is a map which keys are the extensions and the values are 'true'.
2016-06-22 11:11:00 +02:00
Extensions = {}
2018-02-26 23:20:46 +01:00
ext = {'aac', 'ape', 'flac', 'm4a', 'mp3', 'mp4', 'mpc', 'ogg', 'wav', 'wv'}
2016-06-22 11:11:00 +02:00
for _, v in ipairs(ext) do
Extensions[v]=true
end
2014-10-15 10:53:26 +02:00
2018-02-26 23:20:46 +01:00
-- Whther to fetch cover from an online database.
-- Since Internet queries slow down the process, it's recommended to only turn
-- it on from the commandline when needed.
2016-06-07 21:57:05 +02:00
Getcover = false
2014-07-01 09:16:10 +02:00
2016-01-11 08:22:25 +01:00
-- Fetch tags from an online database.
2018-02-26 23:20:46 +01:00
-- Since Internet queries slow down the process, it's recommended to only turn
-- it on from the commandline when needed.
2016-06-07 21:57:05 +02:00
Gettags = false
2014-07-01 09:16:10 +02:00
2016-01-11 08:22:25 +01:00
-- Lua code to run before and after the other scripts, respectively.
2016-06-07 21:57:05 +02:00
Prescript = ''
Postscript = ''
2014-07-01 09:16:10 +02:00
2016-01-11 08:22:25 +01:00
-- If false, show preview and exit before processing.
2016-06-07 21:57:05 +02:00
Process = false
2014-07-01 09:16:10 +02:00
2016-01-11 08:22:25 +01:00
-- Scripts to run by default.
2018-02-26 23:20:46 +01:00
-- Scripts can later be added or removed via the commandline.
-- Demlo runs them in lexicographic order.
-- Thus the names matter, e.g. 'path' can be influenced by the modifications
-- made by 'tag', so we name the scripts with a prefix number so that 'tag' is
-- run before 'path'.
Scripts = {'10-tag-normalize', '15-tag-disc_from_path', '20-tag-replace', '30-tag-case', '40-tag-punctuation', '50-encoding', '58-path-newlib', '60-path', '70-cover',
2019-03-11 10:04:47 +01:00
'00-tag-const', '51-encoding-flac2ogg', '59-humour'}