From bec6cc8c58c2da8bb6b2fb2959158435199c2753 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Fri, 6 Oct 2023 14:58:02 +0200 Subject: [PATCH] Start with a basic configuration file --- src/resources/config.toml | 37 +------------------------------- src/resources/config.toml.new | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 36 deletions(-) create mode 100644 src/resources/config.toml.new diff --git a/src/resources/config.toml b/src/resources/config.toml index 235fe4b..cc27ee7 100644 --- a/src/resources/config.toml +++ b/src/resources/config.toml @@ -1,40 +1,5 @@ # dashinit Configuration File [general] -# Where to download templates from -template_repo = "https://gitpot.dev/dashinit/templates" - # The default template to be used when initialising -default_template = "default" - -[templates] -# Allow user scripts to be executed -allow_scripts = false - -# If allow_scripts is set to false, these scripts will still be executable -script_whitelist = [ - "default/default.sh" - # "template/script.sh", - # "~/.local/share/dashinit/scripts/script.sh" # full paths are also possible -] - -[updates] -# Check for updates periodically. Disabled by default -check = false - -# Frequency to check for updates. (daily, weekly, monthly) -# If an unrecognized value is provided, it defaults to 'weekly' -frequency = "weekly" - -[logs] -# Whether logs are enabled or not -enabled = false - -# Specify log level (info, warning, error, debug) -level = "info" - -# Where the logs should be stored -path = "~/.local/share/dashinit/logs" - -# Maximum log size in MB before a new log gets created -max_size = 10 \ No newline at end of file +default_template = "default" \ No newline at end of file diff --git a/src/resources/config.toml.new b/src/resources/config.toml.new new file mode 100644 index 0000000..235fe4b --- /dev/null +++ b/src/resources/config.toml.new @@ -0,0 +1,40 @@ +# dashinit Configuration File + +[general] +# Where to download templates from +template_repo = "https://gitpot.dev/dashinit/templates" + +# The default template to be used when initialising +default_template = "default" + +[templates] +# Allow user scripts to be executed +allow_scripts = false + +# If allow_scripts is set to false, these scripts will still be executable +script_whitelist = [ + "default/default.sh" + # "template/script.sh", + # "~/.local/share/dashinit/scripts/script.sh" # full paths are also possible +] + +[updates] +# Check for updates periodically. Disabled by default +check = false + +# Frequency to check for updates. (daily, weekly, monthly) +# If an unrecognized value is provided, it defaults to 'weekly' +frequency = "weekly" + +[logs] +# Whether logs are enabled or not +enabled = false + +# Specify log level (info, warning, error, debug) +level = "info" + +# Where the logs should be stored +path = "~/.local/share/dashinit/logs" + +# Maximum log size in MB before a new log gets created +max_size = 10 \ No newline at end of file