Skip to content

Commit 7ad2e8a

Browse files
committed
fix: omp.json -- port leading/trailing rounded caps + final_space=false to the source theme (was only in Get-MiOS.ps1's embedded copy, but install uses the source)
Operator: "powerline doesn't reach the right side on spawn". Earlier fixes (53c036a, eab2e5b) added a leading_diamond U+E0B6 cap on the shell segment (line 1) + status segment (line 2), and a trailing_ diamond U+E0B4 on the time segment + final_space=false -- but those edits landed in $Script:MiosOmpJson INSIDE Get-MiOS.ps1 (a stage-time fallback) NOT in the source theme at usr/share/mios/oh-my-posh/mios.omp .json which is what build-mios.ps1's Install-WindowsBranding actually copies to M:\MiOS\themes\mios.omp.json. So operators were getting the OLD un-capped theme on every install. Ported the four diamond changes (line-1 leading + line-2 leading + time trailing + status powerline-conversion) to the source theme. The [theme.prompt] runtime substitution in build-mios.ps1 still patches glyph values but doesn't add segments -- so the diamond placement had to live in the source.
1 parent 1d88959 commit 7ad2e8a

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

usr/share/mios/oh-my-posh/mios.omp.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
33
"version": 4,
4-
"final_space": true,
4+
"//final_space": "false: don't reserve a trailing column after the prompt -- the right-aligned time segment uses trailing_diamond U+E0B4 to reach col 79 of the frameless 80-col terminal.",
5+
"final_space": false,
56
"//": [
67
"MiOS Oh-My-Posh theme.",
78
"All Nerd Font private-use-area glyphs are encoded as JSON \\uXXXX",
@@ -20,10 +21,14 @@
2021
"alignment": "left",
2122
"segments": [
2223
{
24+
"//": "Leading rounded cap (U+E0B6) so the colored powerline starts at col 0 of the frameless MiOS terminal -- replaces the previous plain U+256D U+2500 text prefix that left cols 0-2 uncolored. Background shared with the next 'shell' segment so the cap merges visually.",
2325
"type": "text",
24-
"style": "plain",
25-
"foreground": "#B7C9D7",
26-
"template": "\u256d\u2500"
26+
"style": "diamond",
27+
"leading_diamond": "\ue0b6",
28+
"trailing_diamond": "",
29+
"background": "#1A407F",
30+
"foreground": "#E7DFD3",
31+
"template": ""
2732
},
2833
{
2934
"type": "shell",
@@ -194,10 +199,11 @@
194199
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \uf295 "
195200
},
196201
{
202+
"//": "Trailing rounded cap (U+E0B4) so the right-aligned powerline reaches the right edge of the frameless terminal. diamond style with leading_diamond=cap-merge + trailing_diamond=hard-cap fills the last cell with color instead of dropping back to terminal default.",
197203
"type": "time",
198-
"style": "powerline",
199-
"invert_powerline": true,
200-
"powerline_symbol": "\ue0b6",
204+
"style": "diamond",
205+
"leading_diamond": "\ue0b6",
206+
"trailing_diamond": "\ue0b4",
201207
"background": "#1A407F",
202208
"foreground": "#E7DFD3",
203209
"properties": {
@@ -213,18 +219,24 @@
213219
"newline": true,
214220
"segments": [
215221
{
222+
"//": "Second-line leading rounded cap (U+E0B6) so the colored powerline reaches col 0. Status segment is now powerline-style sharing the cap's background.",
216223
"type": "text",
217-
"style": "plain",
218-
"foreground": "#B7C9D7",
219-
"template": "\u2570\u2500"
224+
"style": "diamond",
225+
"leading_diamond": "",
226+
"trailing_diamond": "",
227+
"background": "#3E7765",
228+
"foreground": "#E7DFD3",
229+
"template": ""
220230
},
221231
{
222232
"type": "status",
223-
"style": "plain",
224-
"foreground": "#3E7765",
225-
"foreground_templates": [
233+
"style": "powerline",
234+
"powerline_symbol": "",
235+
"background": "#3E7765",
236+
"background_templates": [
226237
"{{ if gt .Code 0 }}#DC271B{{ end }}"
227238
],
239+
"foreground": "#E7DFD3",
228240
"properties": {
229241
"always_enabled": true
230242
},

0 commit comments

Comments
 (0)