-
Notifications
You must be signed in to change notification settings - Fork 0
Config JSON Reference
Finn edited this page Jul 4, 2025
·
3 revisions
Yonky uses a config.json file to store all script metadata and launcher settings. This page breaks down its structure and usage.
config.json is located in the root directory, next to Yonky.exe.
It is created automatically the first time you add a script via the GUI.
{
"scripts": [
{
"name": "Example Script",
"description": "Sample PowerShell automation",
"filename": "example.ps1",
"timestamp": true
}
],
"recent_scripts": [],
"auto_scroll": true,
"show_timestamps": false,
"execution_policy": "Bypass"
}- Type: Array of registered scripts displayed in the GUI.
-
Fields:
-
name: Display name for the script in the list. -
description: Optional short note about the script. -
filename: Name of the script file in/scripts/folder. -
timestamp:trueorfalse— whether output should be timestamped.
-
⚠️ If you drop a script into/scripts/manually, it won’t show in the GUI until it’s added here or through the File > Add Script option.
- Type: Array
- Purpose: Tracks recently used scripts (used for future GUI features).
-
Type: Boolean (
trueorfalse) - Purpose: If enabled, the output box auto-scrolls during script execution.
- Type: Boolean
- Purpose: Global override to prefix all output lines with a timestamp.
- Type: String
- Purpose: Sets PowerShell execution policy at runtime.
-
Common values:
"Bypass","RemoteSigned","Unrestricted"
Useful if your system restricts PowerShell script execution.
"Bypass"is safest for most use cases.
- Always close Yonky before manually editing
config.json. - Use a JSON-aware text editor like VS Code or Notepad++.
- Validate syntax with jsonlint.com if unsure.
-
Scripts not showing in GUI: Ensure they are listed under
"scripts"and filenames match what's in/scripts/. - Invalid config: If the file is corrupted, delete it and restart Yonky to generate a fresh one.
Feel free to suggest new config keys or improvements via Issues.