clove/moonDots
omp/config.toml
# omp/config.toml
console_title_template = '{{ .Shell }} in {{ .Folder }}'
version = 3
final_space = true
# Moon palette, matches ~/.config/sway/moon
[palette]
bg = '#080C1C'
fg = '#DBE2F2'
glow = '#90CDF6'
frost = '#CFE9FB'
blue = '#558AD5'
sky = '#74ABEB'
crimson = '#C8406A'
scarlet = '#E06A8E'
rose = '#BDAADE'
gold = '#E2C98A'
yellow = '#F0D98C'
peach = '#F2D4C2'
jade = '#7FD1B9'
mint = '#A6E3CF'
grey = '#4A5A85'
[secondary_prompt]
template = '❯❯ '
foreground = 'p:blue'
background = 'transparent'
[transient_prompt]
template = '❯ '
background = 'transparent'
foreground_templates = [
'{{ if gt .Code 0 }}p:scarlet{{ end }}',
'{{ if eq .Code 0 }}p:glow{{ end }}',
]
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
# user@host
[[blocks.segments]]
type = 'session'
style = 'powerline'
powerline_symbol = ''
template = ' {{ if .Root }}⚡ {{ end }}{{ .UserName }}@{{ .HostName }} '
foreground = 'p:bg'
background = 'p:glow'
[blocks.segments.properties]
cache_duration = 'none'
# Working directory
[[blocks.segments]]
type = 'path'
style = 'powerline'
powerline_symbol = ''
template = ' {{ .Path }} '
foreground = 'p:bg'
background = 'p:sky'
[blocks.segments.properties]
cache_duration = 'none'
style = 'full'
home_icon = '~'
folder_separator_icon = '/'
# Git branch, dirty flag, ahead/behind counts
[[blocks.segments]]
type = 'git'
style = 'powerline'
powerline_symbol = ''
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }}{{ if gt .Behind 0 }} ⇣{{ .Behind }}{{ end }}{{ if gt .Ahead 0 }} ⇡{{ .Ahead }}{{ end }} '
foreground = 'p:bg'
background = 'p:jade'
background_templates = [
'{{ if or (.Working.Changed) (.Staging.Changed) }}p:gold{{ end }}',
'{{ if gt .Behind 0 }}p:frost{{ end }}',
'{{ if gt .Ahead 0 }}p:frost{{ end }}',
]
[blocks.segments.properties]
cache_duration = 'none'
branch_icon = ' '
commit_icon = '@'
fetch_status = true
fetch_upstream_icon = true
# Python, only inside Python projects
[[blocks.segments]]
type = 'python'
style = 'powerline'
powerline_symbol = ''
template = ' {{ if .Venv }}{{ .Venv }}{{ else }}{{ .Full }}{{ end }} '
foreground = 'p:bg'
background = 'p:yellow'
[blocks.segments.properties]
cache_duration = 'none'
display_mode = 'files'
fetch_virtual_env = true
# Node, only inside Node projects
[[blocks.segments]]
type = 'node'
style = 'powerline'
powerline_symbol = ''
template = ' {{ .Full }} '
foreground = 'p:bg'
background = 'p:mint'
[blocks.segments.properties]
cache_duration = 'none'
display_mode = 'files'
fetch_package_manager = false
# Command duration, shown past 5s
[[blocks.segments]]
type = 'executiontime'
style = 'powerline'
powerline_symbol = ''
template = ' {{ .FormattedMs }} '
foreground = 'p:bg'
background = 'p:peach'
[blocks.segments.properties]
cache_duration = 'none'
threshold = 5000
style = 'austin'
# Exit code, shown only on failure
[[blocks.segments]]
type = 'status'
style = 'powerline'
powerline_symbol = ''
template = ' {{ .Code }} '
foreground = 'p:fg'
background = 'p:crimson'
[blocks.segments.properties]
cache_duration = 'none'
always_enabled = false
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
type = 'text'
style = 'plain'
template = '❯'
background = 'transparent'
foreground_templates = [
'{{ if gt .Code 0 }}p:scarlet{{ end }}',
'{{ if eq .Code 0 }}p:glow{{ end }}',
]
[blocks.segments.properties]
cache_duration = 'none'