Skip to content

Instantly share code, notes, and snippets.

@Seefer
Last active October 14, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Seefer/a235542e924d66539764d09aa3459c92 to your computer and use it in GitHub Desktop.
Save Seefer/a235542e924d66539764d09aa3459c92 to your computer and use it in GitHub Desktop.
Oh-my-posh config for a laptop that includes battery status indicator segment.
{
"final_space": true,
"osc99": false,
"console_title": true,
"console_title_style": "folder",
"console_title_template": "",
"terminal_background": "",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
"segments": [
{
"type": "session",
"style": "diamond",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder",
"display_user": false,
"display_host": true
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#ff479c",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"prefix": "  ",
"style": "folder",
"display_host": true
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"invert_powerline": false,
"foreground": "#193549",
"background": "#fffb38",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true,
"color_background": true,
"status_colors_enabled": true
}
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"background": "#6CA35E",
"leading_diamond": "",
"trailing_diamond": "",
"properties": {
"display_version": true,
"prefix": "  "
}
},
{
"type": "node",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#6CA35E",
"properties": {
"prefix": " \uE718 "
}
},
{
"type": "root",
"style": "powerline",
"powerline_symbol": "",
"invert_powerline": false,
"foreground": "#ffffff",
"foreground_templates": null,
"background": "#C386F1",
"background_templates": null,
"leading_diamond": "",
"trailing_diamond": "",
"properties": null
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#8800dd",
"properties": {
"threshold": 500,
"style": "austin",
"prefix": " <#fefefe>\ufbab</> "
}
},
{
"type": "exit",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"foreground_templates": null,
"background": "#2e9599",
"background_templates": null,
"properties": {
"always_enabled": false,
"color_background": true,
"display_exit_code": false,
"error_color": "#f1184c",
"prefix": "<#193549></> \uE23A"
}
}
]
},
{
"type": "newline"
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"properties": {
"text": ""
}
}
]
}
]
}
@Seefer
Copy link
Author

Seefer commented Apr 27, 2021

Here's how things look on my laptop with the battery status indicator and inside a dotnet project with the dotnet version shown.

Capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment