diff --git a/presets/archey.jsonc b/presets/archey.jsonc index ae5401d08..4e2250c17 100644 --- a/presets/archey.jsonc +++ b/presets/archey.jsonc @@ -40,7 +40,7 @@ }, { "type": "terminal", - "format": "{5} {6} \u001b[37m█\u001b[97m█ \u001b[36m█\u001b[96m█ \u001b[35m█\u001b[95m█ \u001b[34m█\u001b[94m█ \u001b[33m█\u001b[93m█ \u001b[32m█\u001b[92m█ \u001b[31m█\u001b[91m█ \u001b[30m█\u001b[90m█" + "format": "{5} {6} {#37}█{#97}█ {#36}█{#96}█ {#35}█{#95}█ {#34}█{#94}█ {#33}█{#93}█ {#32}█{#92}█ {#31}█{#91}█ {#30}█{#90}█" }, { "type": "packages", diff --git a/presets/examples/10.jsonc b/presets/examples/10.jsonc index 40af25fef..50da23889 100644 --- a/presets/examples/10.jsonc +++ b/presets/examples/10.jsonc @@ -14,7 +14,8 @@ "modules": [ { "type": "custom", - "format": "\u001b[90m┌────────────────────────────────────────────────────────────┐" + "format": "┌────────────────────────────────────────────────────────────┐", + "outputColor": "90" }, { "type": "title", @@ -22,15 +23,17 @@ }, { "type": "custom", - "format": "\u001b[90m└────────────────────────────────────────────────────────────┘" + "format": "└────────────────────────────────────────────────────────────┘", + "outputColor": "90" }, { "type": "custom", - "format": " \u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m  \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m" + "format": " {#90} {#31} {#32} {#33} {#34} {#35} {#36} {#37} {#38} {#39}  {#38} {#37} {#36} {#35} {#34} {#33} {#32} {#31} {#90}" }, { "type": "custom", - "format": "\u001b[90m┌────────────────────────────────────────────────────────────┐" + "format": "┌────────────────────────────────────────────────────────────┐", + "outputColor": "90" }, { "type": "os", @@ -139,12 +142,13 @@ }, { "type": "custom", - "format": "\u001b[90m└────────────────────────────────────────────────────────────┘" + "format": "└────────────────────────────────────────────────────────────┘", + "outputColor": "90" }, "break", { "type": "custom", - "format": " \u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m  \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m" + "format": " {#90} {#31} {#32} {#33} {#34} {#35} {#36} {#37} {#38} {#39}  {#38} {#37} {#36} {#35} {#34} {#33} {#32} {#31} {#90}" } ] } diff --git a/presets/examples/12.jsonc b/presets/examples/12.jsonc index 86a66d1aa..468ea28ff 100644 --- a/presets/examples/12.jsonc +++ b/presets/examples/12.jsonc @@ -4,7 +4,7 @@ "type": "none" }, "display": { - "separator": "-> " + "separator": "\u001b[1m-> " }, "modules": [ { @@ -14,7 +14,7 @@ "break", { "type": "custom", - "format": "┌───────────────────────────── \u001b[1mSystem Information\u001b[0m ─────────────────────────────┐" // `\u001b` is `\033`, or `\e` + "format": "┌───────────────────────────── {#1}System Information{#} ─────────────────────────────┐" }, "break", { @@ -92,7 +92,7 @@ "break", { "type": "custom", - "format": "└──────────────────────────────────────────────────────────────────────────────┘" // `\u001b` is `\033`, or `\e` + "format": "└──────────────────────────────────────────────────────────────────────────────┘" }, "break", { diff --git a/presets/examples/13.jsonc b/presets/examples/13.jsonc index d4ff95a29..8b29ab4c1 100644 --- a/presets/examples/13.jsonc +++ b/presets/examples/13.jsonc @@ -17,54 +17,55 @@ }, { // draw borders first to make colors of left and right border consistant - "key": "│ │\u001b[11D\u001b[31m user", + "key": "│ │\u001b[11D{#31} user", "type": "title", "format": "{1}" }, { - "key": "│ │\u001b[11D\u001b[32m󰇅 hname", + "key": "│ │\u001b[11D{#32}󰇅 hname", "type": "title", "format": "{2}" }, { - "key": "│ │\u001b[11D\u001b[33m󰅐 uptime", + "key": "│ │\u001b[11D{#33}󰅐 uptime", "type": "uptime" }, { - "key": "│ │\u001b[11D\u001b[34m󰟾 distro", + "key": "│ │\u001b[11D{#34}󰟾 distro", "type": "os" }, { - "key": "│ │\u001b[11D\u001b[35m kernel", + "key": "│ │\u001b[11D{#35} kernel", "type": "kernel" }, { - "key": "│ │\u001b[11D\u001b[36m󰇄 desktop", + "key": "│ │\u001b[11D{#36}󰇄 desktop", "type": "de" }, { - "key": "│ │\u001b[11D\u001b[31m term", + "key": "│ │\u001b[11D{#31} term", "type": "terminal" }, { - "key": "│ │\u001b[11D\u001b[32m shell", + "key": "│ │\u001b[11D{#32} shell", "type": "shell" }, { - "key": "│ │\u001b[11D\u001b[33m󰍛 cpu", - "type": "cpu" + "key": "│ │\u001b[11D{#33}󰍛 cpu", + "type": "cpu", + "showPeCoreCount": true }, { - "key": "│ │\u001b[11D\u001b[34m󰉉 disk", + "key": "│ │\u001b[11D{#34}󰉉 disk", "type": "disk", "folders": "/" }, { - "key": "│ │\u001b[11D\u001b[35m memory", + "key": "│ │\u001b[11D{#35} memory", "type": "memory" }, { - "key": "│ │\u001b[11D\u001b[36m󰩟 network", + "key": "│ │\u001b[11D{#36}󰩟 network", "type": "localip", "format": "{1} ({4})" }, @@ -73,7 +74,7 @@ "type": "custom" }, { - "key": "│ │\u001b[11D\u001b[m colors", + "key": "│ │\u001b[11D{#39} colors", "type": "colors", "symbol": "circle" }, diff --git a/presets/examples/2.jsonc b/presets/examples/2.jsonc index 8c1c4bfcf..d118fcc7a 100644 --- a/presets/examples/2.jsonc +++ b/presets/examples/2.jsonc @@ -15,7 +15,7 @@ "modules": [ { "type": "custom", // HardwareStart - "format": "┌─────────── \u001b[1mHardware Information\u001b[0m ───────────┐" // `\u001b` is `\033`, or `\e` + "format": "┌─────────── {#1}Hardware Information{#} ───────────┐" // {#1} is the same as `\u001b[1m`. {#} is `\u001b[m` }, { "type": "host", @@ -71,7 +71,7 @@ }, { "type": "custom", // SoftwareStart - "format": "├─────────── \u001b[1mSoftware Information\u001b[0m ───────────┤" + "format": "├─────────── {#1}Software Information{#} ───────────┤" }, { "type": "title", diff --git a/presets/examples/8.jsonc b/presets/examples/8.jsonc index 79d89e9db..4993257c7 100644 --- a/presets/examples/8.jsonc +++ b/presets/examples/8.jsonc @@ -46,7 +46,7 @@ { "type": "custom", "key": "", - "format": "\u001b[31m███\u001b[32m███\u001b[33m███\u001b[34m███\u001b[35m███\u001b[36m███" + "format": "{#31}███{#32}███{#33}███{#34}███{#35}███{#36}███" } ] }