Can you share your config? I’ve been trying to get my battery to display as a bar, not just a percentage.
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "auto",
"source": "/home/erik/Pictures/En-OS-Noodly-OG-En-OS-Logo.png",
"width": 20, // Width in characters (for image logos)
"height": 10, // Height in characters (for image logos)
"padding": {
"top": 5, // Top padding
"left": 1, // Left padding
"right": 1 // Right padding
}
},
"display": {
"color": {
"keys": "white"
},
"separator": "",
"constants": [
"──────────────────────────────────────────────────────", // {$1} - horizontal line for borders
"\u001b[55D", // {$2} - move cursor left 55 columns
"\u001b[55C", // {$3} - move cursor right 55 columns
"\u001b[54C" // {$4} - move cursor right 54 columns
],
"brightColor": true
},
"modules": [
"break",
{
"type": "version",
"key": "┌────────────┬─{$1}┐\u001b[37D",
"format": "\u001b[1m{#keys} {1} - {2} "
},
{
"type": "os",
"key": "│ \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}"
},
{
"type": "kernel",
"key": "│ \u001b[sKernel\u001b[u\u001b[10C│{$3}│{$2}"
},
{
"type": "datetime",
"key": "│ Fetched │{$3}│{$2}",
"format": "{day-pretty}-{month-pretty}-{year} {hour-pretty}:{minute-pretty}:{second-pretty} {timezone-name}"
},
{
"type": "locale",
"key": "│ Locale │{$3}│{$2}"
},
{
"type": "custom",
"key": "├────────────┴─{$1}┤", // Bottom border of the entire layout
"format": ""
},
// Hardware section with cyan color theme
{
"type": "custom",
"key": "│{#cyan}┌───────────┬{$1}┐{#keys}│\u001b[37D",
"format": "{#bright_cyan} Hardware "
},
{
"type": "chassis",
"key": "│{#cyan}│ Chassis │{$4}│{#keys}│{$2}"
},
{
"type": "cpu",
"key": "│{#cyan}│ CPU │{$4}│{#keys}│{$2}",
"format": "{name} @{freq-max}",
"showPeCoreCount": false
},
{
"type": "gpu",
"key": "│{#cyan}│ GPU │{$4}│{#keys}│{$2}"
},
{
"type": "memory",
"key": "│{#cyan}│ RAM │{$4}│{#keys}│{$2}",
// "keyColor": "34",
"percent": {
"type": 3, // 3 = show number + bar + percentage
"green": 30, // <30% is green
"yellow": 70 // 30-70% is yellow, >70% is red
}
},
{
"type": "swap",
"key": "│{#cyan}│ SWAP │{$4}│{#keys}│{$2}",
// "keyColor": "34",
"percent": {
"type": 3, // 3 = show number + bar + percentage
"green": 30, // <30% is green
"yellow": 70 // 30-70% is yellow, >70% is red
}
},
{
"type": "disk",
"key": "│{#cyan}│ Disk │{$4}│{#keys}│{$2}",
// "keyColor": "34",
"percent": {
"type": 3, // 3 = show number + bar + percentage
"green": 30, // <30% is green
"yellow": 70 // 30-70% is yellow, >70% is red
},
},
{
"type": "battery",
"key": "│{#cyan}│ Battery │{$4}│{#keys}│{$2}"
// "keyColor": "34",
},
{
"type": "custom",
"key": "│{#cyan}└───────────┴{$1}┘{#keys}│",
"format": ""
},
// Network section with red color theme
{
"type": "custom",
"key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
"format": "{#bright_red} Network "
},
{
"type": "command",
"key": "│{#red}│ Ethernet │{$4}│{#keys}│{$2}",
"text": "IF=eth0; printf \"%s %s %s\\n\" \"$IF\" \"$(cat /sys/class/net/$IF/operstate)\" \"$(cat /sys/class/net/$IF/speed 2>/dev/null | sed 's/$/Mb\\/s/')\""
},
{
"type": "wifi",
"key": "│{#red}│ WiFi │{$4}│{#keys}│{$2}"
},
{
"type": "custom",
"key": "│{#red}└───────────┴{$1}┘{#keys}│",
"format": ""
},
// Desktop section with green color theme
{
"type": "custom",
"key": "│{#green}┌───────────┬{$1}┐{#keys}│\u001b[37D",
"format": "{#bright_green} Desktop "
},
{
"type": "de",
"key": "│{#green}│ Desktop │{$4}│{#keys}│{$2}"
},
{
"type": "wm",
"key": "│{#green}│ Session │{$4}│{#keys}│{$2}"
},
{
"type": "display",
"key": "│{#green}│ Display │{$4}│{#keys}│{$2}",
"compactType": "original-with-refresh-rate"
},
{
"type": "gpu",
"key": "│{#green}│ G-Driver │{$4}│{#keys}│{$2}",
"format": "{driver}"
},
{
"type": "custom",
"key": "│{#green}└───────────┴{$1}┘{#keys}│",
"format": ""
},
// Terminal section with yellow color theme
{
"type": "custom",
"key": "│{#yellow}┌───────────┬{$1}┐{#keys}│\u001b[37D",
"format": "{#bright_yellow} Terminal "
},
{
"type": "shell",
"key": "│{#yellow}│ Shell │{$4}│{#keys}│{$2}"
},
{
"type": "terminal",
"key": "│{#yellow}│ Terminal │{$4}│{#keys}│{$2}"
},
{
"type": "terminalfont",
"key": "│{#yellow}│ Term Font │{$4}│{#keys}│{$2}"
},
// {
// "type": "terminaltheme",
// "key": "│{#yellow}│ Colors │{$4}│{#keys}│{$2}"
// },
{
"type": "packages",
"key": "│{#yellow}│ Packages │{$4}│{#keys}│{$2}"
},
{
"type": "custom",
"key": "│{#yellow}└───────────┴{$1}┘{#keys}│",
"format": ""
},
// Development section with red color theme
// {
// "type": "custom",
// "key": "│{#red}┌───────────┬{$1}┐{#keys}│\u001b[37D",
// "format": "{#bright_red} Development "
// },
// {
// "type": "command",
// "key": "│{#red}│ Rust │{$4}│{#keys}│{$2}",
// "text": "rustc --version",
// "format": "rustc {~6,13}" // Print 6th to 13th characters (version number)
// },
// {
// "type": "command",
// "condition": {
// "!system": "Windows" // Posix version
// },
// "key": "│{#red}│ Clang │{$4}│{#keys}│{$2}",
// "text": "clang --version | head -1 | awk '{print $NF}'",
// "format": "clang {}"
// },
// {
// "type": "command",
// "condition": {
// "system": "Windows" // Windows version
// },
// "key": "│{#red}│ Clang │{$4}│{#keys}│{$2}",
// "text": "clang --version | findstr version", // Finds the line with "version"
// "format": "clang {~-6}" // Prints the last 6 characters (version number)
// },
// {
// "type": "command",
// "key": "│{#red}│ NodeJS │{$4}│{#keys}│{$2}",
// "text": "node --version",
// "format": "node {~1}" // {~1} removes first character (v)
// },
// {
// "type": "command",
// "key": "│{#red}│ Go │{$4}│{#keys}│{$2}",
// "text": "go version | cut -d' ' -f3",
// "format": "go {~2}" // {~2} removes first 2 characters (go)
// },
// {
// "type": "command",
// "key": "│{#red}│ Zig │{$4}│{#keys}│{$2}",
// "text": "zig version",
// "format": "zig {}"
// },
// {
// "type": "editor",
// "key": "│{#red}│ Editor │{$4}│{#keys}│{$2}"
// },
// {
// "type": "command",
// "key": "│{#red}│ Git │{$4}│{#keys}│{$2}",
// "text": "git version",
// "format": "git {~12}"
// },
// {
// "type": "font",
// "key": "│{#red}│ Interface │{$4}│{#keys}│{$2}",
// "format": "{font1}"
// },
// {
// "type": "custom",
// "key": "│{#red}└───────────┴{$1}┘{#keys}│",
// "format": ""
// },
// Uptime section with magenta color theme
{
"type": "custom",
"key": "│{#magenta}┌───────────┬{$1}┐{#keys}│\u001b[37D",
"format": "{#bright_magenta} Uptime "
},
{
"type": "uptime",
"key": "│{#magenta}│ Uptime │{$4}│{#keys}│{$2}"
},
{
"type": "users",
"myselfOnly": true, // Only show current user
"key": "│{#magenta}│ Login │{$4}│{#keys}│{$2}"
},
{
"condition": { // Conditional module: only show on non-macOS
"!system": "macOS"
},
"type": "disk",
"key": "│{#magenta}│ OS Age │{$4}│{#keys}│{$2}",
"folders": "/", // Check root filesystem
"format": "{create-time:10} [{days} days]" // Show creation time and age in days
},
{
"condition": { // Conditional module: only show on macOS
"system": "macOS"
},
"type": "disk",
"key": "│{#magenta}│ OS Age │{$4}│{#keys}│{$2}",
"folders": "/System/Volumes/VM", // Work around for APFS on macOS
"format": "{create-time:10} [{days} days]"
},
{
"type": "custom",
"key": "│{#magenta}└───────────┴{$1}┘{#keys}│",
"format": ""
},
{
"type": "custom",
"key": "│ {$3} │{$2}",
"format":"{#37} {#37} • {#37}• {#37}• {#31} {#32} {#33} {#34} {#35} {#36} "
// "format":"{#37} {#31} {#32} {#33} {#36} {#35} {#34} {#33} {#32} {#31} "
},
{
"type": "custom",
"key": "└──────────────{$1}┘", // Bottom border of the entire layout
"format": ""
},
// End with color palette and line break
// "break", // Add a blank line
//"colors" // Display color palette
"break",
]
}










