From 5087ea77b4e7542f3c3ed317744ba7cf8aa6f124 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 28 Feb 2026 17:30:40 +0800 Subject: [PATCH] Presets: replaces outer single-line border with double-lines in `examples/25` --- presets/examples/25.jsonc | 101 +++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git a/presets/examples/25.jsonc b/presets/examples/25.jsonc index c00265716..ddb3fdf2d 100644 --- a/presets/examples/25.jsonc +++ b/presets/examples/25.jsonc @@ -9,25 +9,26 @@ // Constants are reusable strings referenced by {$1}, {$2}, etc. // These contain ANSI escape codes for cursor positioning "constants": [ - "──────────────────────────────────────────────", // {$1} - horizontal line for borders + "──────────────────────────────────────────────", // {$1} - horizontal line for inner borders "\u001b[47D", // {$2} - move cursor left 47 columns "\u001b[47C", // {$3} - move cursor right 47 columns - "\u001b[46C" // {$4} - move cursor right 46 columns + "\u001b[46C", // {$4} - move cursor right 46 columns + "══════════════════════════════════════════════" // {$5} - horizontal line for outer borders ], "brightColor": false }, "modules": [ { "type": "version", - "key": "┌───────────────┬─{$1}┐\u001b[41D", + "key": "╔═══════════════╦═{$5}╗\u001b[41D", "format": "\u001b[1m{#keys} {1} - {2} " }, { "type": "os", // Key format breakdown for OS module: - // "│ {icon} \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}" + // "║ {icon} \u001b[s{sysname}\u001b[u\u001b[10C│{$3}║{$2}" // - // │ - Left border of key block + // ║ - Left border of key block // {icon} - OS icon (defined internally by fastfetch) // \u001b[s - ANSI escape: save cursor position (ESC[s) // {sysname} - Format variable: system name (e.g., "Linux", "Darwin") @@ -36,28 +37,28 @@ // \u001b[10C - ANSI escape: move cursor right 10 columns (ESC[10C) // │ - Right border of key block (always 10 columns from left border) // {$3} - Reference to constants[2]: move cursor right 47 columns - // │ - Right border of value block + // ║ - Right border of value block // {$2} - Reference to constants[1]: move cursor left 47 columns // // This creates a fixed-width layout where the key block is exactly 10 columns wide, // regardless of the actual content length. The cursor manipulation ensures proper // alignment for the table-like structure. - "key": "│ {icon} \u001b[s{sysname}\u001b[u\u001b[10C│{$3}│{$2}" + "key": "║ {icon} \u001b[s{sysname}\u001b[u\u001b[10C║{$3}║{$2}" }, { "type": "datetime", - "key": "│ {icon} Fetched │{$3}│{$2}", + "key": "║ {icon} Fetched ║{$3}║{$2}", "format": "{year}-{month-pretty}-{day-pretty} {hour-pretty}:{minute-pretty}:{second-pretty} {timezone-name}" }, { "type": "locale", - "key": "│ {icon} Locale │{$3}│{$2}" + "key": "║ {icon} Locale ║{$3}║{$2}" }, // Hardware section with cyan color theme { "type": "custom", - "key": "│{#cyan}┌──────────────┬{$1}┐{#keys}│\u001b[37D", + "key": "║{#cyan}┌──────────────┬{$1}┐{#keys}║\u001b[37D", "format": "{#bright_cyan} Hardware " }, { @@ -66,113 +67,113 @@ // │{#cyan}│ - Left border with cyan color // {icon} - Chassis icon // Chassis - Fixed label text - // │{$4}│{#keys}│{$2} - Positioning and borders for value area - "key": "│{#cyan}│ {icon} Chassis │{$4}│{#keys}│{$2}" + // │{$4}│{#keys}║{$2} - Positioning and borders for value area + "key": "║{#cyan}│ {icon} Chassis │{$4}│{#keys}║{$2}" }, { "type": "memory", - "key": "│{#cyan}│ {icon} RAM │{$4}│{#keys}│{$2}" + "key": "║{#cyan}│ {icon} RAM │{$4}│{#keys}║{$2}" }, { "type": "swap", - "key": "│{#cyan}│ {icon} SWAP │{$4}│{#keys}│{$2}" + "key": "║{#cyan}│ {icon} SWAP │{$4}│{#keys}║{$2}" }, { "type": "cpu", - "key": "│{#cyan}│ {icon} CPU │{$4}│{#keys}│{$2}", + "key": "║{#cyan}│ {icon} CPU │{$4}│{#keys}║{$2}", "showPeCoreCount": true }, { "type": "gpu", - "key": "│{#cyan}│ {icon} GPU │{$4}│{#keys}│{$2}" + "key": "║{#cyan}│ {icon} GPU │{$4}│{#keys}║{$2}" }, { "type": "disk", - "key": "│{#cyan}│ {icon} Disk │{$4}│{#keys}│{$2}", + "key": "║{#cyan}│ {icon} Disk │{$4}│{#keys}║{$2}", "format": "{size-used} \/ {size-total} ({size-percentage}) - {filesystem}", }, { "type": "battery", - "key": "│{#cyan}│ {icon} Battery │{$4}│{#keys}│{$2}" + "key": "║{#cyan}│ {icon} Battery │{$4}│{#keys}║{$2}" }, { "type": "custom", - "key": "│{#cyan}└──────────────┴{$1}┘{#keys}│", + "key": "║{#cyan}└──────────────┴{$1}┘{#keys}║", "format": "" }, // Desktop section with green color theme { "type": "custom", - "key": "│{#green}┌──────────────┬{$1}┐{#keys}│\u001b[37D", + "key": "║{#green}┌──────────────┬{$1}┐{#keys}║\u001b[37D", "format": "{#bright_green} Desktop " }, { "type": "de", - "key": "│{#green}│ {icon} Desktop │{$4}│{#keys}│{$2}" + "key": "║{#green}│ {icon} Desktop │{$4}│{#keys}║{$2}" }, { "type": "wm", - "key": "│{#green}│ {icon} Session │{$4}│{#keys}│{$2}" + "key": "║{#green}│ {icon} Session │{$4}│{#keys}║{$2}" }, { "type": "display", - "key": "│{#green}│ {icon} Display │{$4}│{#keys}│{$2}", + "key": "║{#green}│ {icon} Display │{$4}│{#keys}║{$2}", "compactType": "original-with-refresh-rate" }, { "type": "gpu", - "key": "│{#green}│ {icon} G-Driver │{$4}│{#keys}│{$2}", + "key": "║{#green}│ {icon} G-Driver │{$4}│{#keys}║{$2}", "format": "{driver}" }, { "type": "custom", - "key": "│{#green}└──────────────┴{$1}┘{#keys}│", + "key": "║{#green}└──────────────┴{$1}┘{#keys}║", "format": "" }, // Terminal section with yellow color theme { "type": "custom", - "key": "│{#yellow}┌──────────────┬{$1}┐{#keys}│\u001b[37D", + "key": "║{#yellow}┌──────────────┬{$1}┐{#keys}║\u001b[37D", "format": "{#bright_yellow} Terminal " }, { "type": "shell", - "key": "│{#yellow}│ {icon} Shell │{$4}│{#keys}│{$2}" + "key": "║{#yellow}│ {icon} Shell │{$4}│{#keys}║{$2}" }, { "type": "terminal", - "key": "│{#yellow}│ {icon} Terminal │{$4}│{#keys}│{$2}" + "key": "║{#yellow}│ {icon} Terminal │{$4}│{#keys}║{$2}" }, { "type": "terminalfont", - "key": "│{#yellow}│ {icon} Term Font │{$4}│{#keys}│{$2}" + "key": "║{#yellow}│ {icon} Term Font │{$4}│{#keys}║{$2}" }, { "type": "terminaltheme", - "key": "│{#yellow}│ {icon} Colors │{$4}│{#keys}│{$2}" + "key": "║{#yellow}│ {icon} Colors │{$4}│{#keys}║{$2}" }, { "type": "packages", - "key": "│{#yellow}│ {icon} Packages │{$4}│{#keys}│{$2}" + "key": "║{#yellow}│ {icon} Packages │{$4}│{#keys}║{$2}" }, { "type": "custom", - "key": "│{#yellow}└──────────────┴{$1}┘{#keys}│", + "key": "║{#yellow}└──────────────┴{$1}┘{#keys}║", "format": "" }, // Development section with red color theme { "type": "custom", - "key": "│{#red}┌──────────────┬{$1}┐{#keys}│\u001b[39D", + "key": "║{#red}┌──────────────┬{$1}┐{#keys}║\u001b[39D", "format": "{#bright_red} Development " }, { "type": "command", "keyIcon": "", // Custom icon override - "key": "│{#red}│ {icon} Rust │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} Rust │{$4}│{#keys}║{$2}", "text": "rustc --version", "format": "rustc {~6,13}" // Print 6th to 13th characters (version number) }, @@ -182,7 +183,7 @@ "!system": "Windows" // Posix version }, "keyIcon": "", - "key": "│{#red}│ {icon} Clang │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} Clang │{$4}│{#keys}║{$2}", "text": "clang --version | sed -n 's/.*version \\([0-9][0-9.]*\\).*/\\1/p'", "format": "clang {}" }, @@ -192,67 +193,67 @@ "system": "Windows" // Windows version }, "keyIcon": "", - "key": "│{#red}│ {icon} Clang │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} 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", "keyIcon": "", - "key": "│{#red}│ {icon} NodeJS │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} NodeJS │{$4}│{#keys}║{$2}", "text": "node --version", "format": "node {~1}" // {~1} removes first character (v) }, { "type": "command", "keyIcon": "", - "key": "│{#red}│ {icon} Go │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} Go │{$4}│{#keys}║{$2}", "text": "go version | cut -d' ' -f3", "format": "go {~2}" // {~2} removes first 2 characters (go) }, { "type": "command", "keyIcon": "", - "key": "│{#red}│ {icon} Zig │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} Zig │{$4}│{#keys}║{$2}", "text": "zig version", "format": "zig {}" }, { "type": "editor", - "key": "│{#red}│ {icon} Editor │{$4}│{#keys}│{$2}" + "key": "║{#red}│ {icon} Editor │{$4}│{#keys}║{$2}" }, { "type": "command", "keyIcon": "󰊢", - "key": "│{#red}│ {icon} Git │{$4}│{#keys}│{$2}", + "key": "║{#red}│ {icon} Git │{$4}│{#keys}║{$2}", "text": "git version", "format": "git {~12}" }, { "type": "font", - "key": "│{#red}│ {icon} Interface │{$4}│{#keys}│{$2}" + "key": "║{#red}│ {icon} Interface │{$4}│{#keys}║{$2}" }, { "type": "custom", - "key": "│{#red}└──────────────┴{$1}┘{#keys}│", + "key": "║{#red}└──────────────┴{$1}┘{#keys}║", "format": "" }, // Uptime section with magenta color theme { "type": "custom", - "key": "│{#magenta}┌──────────────┬{$1}┐{#keys}│\u001b[36D", + "key": "║{#magenta}┌──────────────┬{$1}┐{#keys}║\u001b[36D", "format": "{#bright_magenta} Uptime " }, { "type": "uptime", - "key": "│{#magenta}│ {icon} Uptime │{$4}│{#keys}│{$2}" + "key": "║{#magenta}│ {icon} Uptime │{$4}│{#keys}║{$2}" }, { "type": "users", "myselfOnly": true, // Only show current user "keyIcon": "", - "key": "│{#magenta}│ {icon} Login │{$4}│{#keys}│{$2}" + "key": "║{#magenta}│ {icon} Login │{$4}│{#keys}║{$2}" }, { "condition": { // Conditional module: only show on non-macOS @@ -260,7 +261,7 @@ }, "type": "disk", "keyIcon": "", - "key": "│{#magenta}│ {icon} OS Age │{$4}│{#keys}│{$2}", + "key": "║{#magenta}│ {icon} OS Age │{$4}│{#keys}║{$2}", "folders": "/", // Check root filesystem "format": "{create-time:10} [{days} days]" // Show creation time and age in days }, @@ -270,18 +271,18 @@ }, "type": "disk", "keyIcon": "", - "key": "│{#magenta}│ {icon} OS Age │{$4}│{#keys}│{$2}", + "key": "║{#magenta}│ {icon} 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}│", + "key": "║{#magenta}└──────────────┴{$1}┘{#keys}║", "format": "" }, { "type": "custom", - "key": "└─────────────────{$1}┘", // Bottom border of the entire layout + "key": "╚═════════════════{$5}╝", // Bottom border of the entire layout "format": "" },