Skip to content

Commit bee8438

Browse files
committed
fix: omp.json -- compact time segment (drop day prefix + clock icon, just HH:MM)
Operator: "time/date is too large for the size containts -- powerlines should be compacted a small amount". Time segment was rendering as ' icon 8,15:50 ' (~12 cells). Now just ' 15:50 ' (~7 cells). Saves ~5 cells of right-block reach which gives more room for the path / git / executiontime segments to breathe. Operator can extend the format back to include date / day / icon via mios.html if they want a busier prompt.
1 parent e5f16e9 commit bee8438

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,17 @@
196196
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \uf295 "
197197
},
198198
{
199+
"//": "Compacted: dropped day-of-month prefix (`_2,`) and the clock icon U+F073. Time-only HH:MM keeps the right block visually small so it doesn't crowd the dashboard frame above. Operator-tunable via mios.toml [theme.prompt] -- but the format string is omp.json-internal so a future SSOT lift would be needed for runtime override.",
199200
"type": "time",
200201
"style": "powerline",
201202
"invert_powerline": true,
202203
"powerline_symbol": "\ue0b6",
203204
"background": "#1A407F",
204205
"foreground": "#E7DFD3",
205206
"properties": {
206-
"time_format": "_2,15:04"
207+
"time_format": "15:04"
207208
},
208-
"template": " \uf073 {{ .CurrentDate | date .Format }} "
209+
"template": " {{ .CurrentDate | date .Format }} "
209210
}
210211
]
211212
},

0 commit comments

Comments
 (0)