leenfetch_core/config/defaults/
mod.rs

1/// Default configuration for the combined `config.jsonc` file.
2///
3/// The JSONC format accepts both standard JSON and `//` comments, mirroring what Fastfetch ships.
4/// Users can keep everything in one place while still enjoying inline descriptions.
5pub const DEFAULT_CONFIG: &str = r#"// ===============================
6// config.jsonc - Unified configuration for leenfetch
7//
8// This file combines the previous flags.ron, toggles.ron, and print_layout.ron files.
9// Edit the sections below to customize appearance, enabled modules, and output ordering.
10// ===============================
11{
12    // -------------------------------
13    // flags - Display and formatting options
14    // -------------------------------
15    "flags": {
16        // Select which distribution's ASCII art to display.
17        // "auto" picks your current distro, any other value selects a specific artwork.
18        // Options: "auto" or a distribution name
19        "ascii_distro": "auto",
20
21        // Choose the color palette for the ASCII art and color blocks.
22        // Use "distro" for automatic colors or a comma-separated list of numbers.
23        // Options: "distro" or eg. "0,2,3,1,5,4"
24        "ascii_colors": "distro",
25
26        // Path to a custom ASCII art file. Leave blank to use the built-in art.
27        // Options: "" or a file path
28        "custom_ascii_path": "",
29
30        // How to display battery information.
31        // Options: "off", "bar", "infobar", "barinfo"
32        "battery_display": "off",
33
34        // String used to draw color blocks in the palette preview.
35        "color_blocks": "●",
36
37        // Show the brand name of your CPU.
38        // options: true or false
39        "cpu_brand": true,
40
41        // Show the number of CPU cores.
42        // options: true or false
43        "cpu_cores": true,
44
45        // Show the CPU frequency.
46        // options: true or false
47        "cpu_frequency": true,
48
49        // Show the current CPU speed.
50        // options: true or false
51        "cpu_speed": true,
52
53        // Which temperature unit to use for CPU temperature.
54        // Options: "C", "F"
55        "cpu_temp": "C",
56
57        // Show the CPU temperature.
58        // options: true or false
59        "cpu_show_temp": false,
60
61        // Show the version of your desktop environment.
62        // options: true or false
63        "de_version": true,
64
65        // How much detail to show about your operating system.
66        // Options: "name", "name_version", "name_arch", "name_model", "name_model_version", "name_model_arch", "name_model_version_arch"
67        "distro_display": "name",
68
69        // How to display disk usage information.
70        // Options: "info", "percentage", "infobar", "barinfo", or "bar".
71        "disk_display": "info",
72
73        // What label to show for each disk.
74        // Options: "name", "dir", "none", "mount"
75        "disk_subtitle": "dir",
76
77        // Show memory usage as a percentage.
78        // options: true or false
79
80        // Which unit to use for memory display.
81        // Options: "mib", "gib", "kib"
82        "memory_unit": "mib",
83
84        // How to display package manager information.
85        // Options: "off", "on", "tiny"
86        "package_managers": "tiny",
87
88        // Show the display's refresh rate.
89        // options: true or false
90        "refresh_rate": true,
91
92        // Show the full path to your shell.
93        // options: true or false
94        "shell_path": false,
95
96        // Show the version of your shell.
97        // options: true or false
98        "shell_version": true,
99
100        // How to display system uptime.
101        // Options: "full", "tiny", or "seconds".
102        "uptime_shorthand": "tiny",
103
104        // How to display os age.
105        // Options: "full", "tiny", or "seconds".
106        "os_age_shorthand": "tiny"
107    },
108
109    
110    // -------------------------------
111    // modules - Output order and custom rows
112    // -------------------------------
113    "modules": [
114        { "type": "custom", "format": "${reset}╭─────────────────────${c1}System${reset}─────────────────────╮" },
115        { "type": "titles", "key": "${reset}│${c1} ╭:"},
116        // { "type": "os", "key": "${c16}│${c1} ├OS"},
117        { "type": "distro", "key": "${reset}│${c1} ├:"},
118        { "type": "kernel", "key": "${reset}│${c1} ├:"},
119        { "type": "packages", "key": "${reset}│${c1} ├󰏖:"},
120        { "type": "shell", "key": "${reset}│ ${c1}├:"},
121        { "type": "wm", "key": "${reset}│${c1} ├:"},
122        { "type": "de", "key": "${reset}│${c1} ├󰇄:"},
123            { "type": "song", "key": "${reset}│${c1} ├"},
124        { "type": "theme", "key": "${reset}│${c1} ├󰸌:"},
125        { "type": "colors", "key": "${reset}│${c1} ╰:"},
126        { "type": "custom", "format": "${reset}╰────────────────────────────────────────────────╯" },
127        // "break",
128        { "type": "custom", "format": "${reset}╭────────────────────${c1}Hardware${reset}────────────────────╮" },
129        { "type": "model", "key": "${reset}│${c1} ╭:"},
130        { "type": "cpu", "key": "${reset}│${c1} ├:"},
131        { "type": "gpu", "key": "${reset}│${c1} ├:"},
132        { "type": "disk", "key": "${reset}│${c1} ├󰋊:"},
133        { "type": "resolution", "key": "${reset}│${c1} ├󱄄:"},
134        // { "type": "battery", "key": "${reset}│${c1} ├:"},
135        { "type": "memory", "key": "${reset}│${c1} ╰:"},
136        { "type": "custom", "format": "${reset}╰────────────────────────────────────────────────╯" },
137        // "break",
138        { "type": "custom", "format": "${reset}╭───────────────────${c1}Age/Uptime${reset}───────────────────╮" },
139        { "type": "os_age", "key": "${reset}│${c1} ╭󱦟 OS Age"},
140        { "type": "uptime", "key": "${reset}│${c1} ╰󱫐 Uptime"},
141        { "type": "custom", "format": "${reset}╰────────────────────────────────────────────────╯" }
142    ]
143}
144
145"#;