-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathglowsticks.omp.yaml
More file actions
94 lines (90 loc) · 3.11 KB
/
glowsticks.omp.yaml
File metadata and controls
94 lines (90 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
blocks:
- alignment: left
segments:
# Session
- background: p:black
foreground: p:white
invert_powerline: true
powerline_symbol:
style: powerline
template: "{{ .UserName }}@{{ .HostName }} "
type: session
# Path
- background: p:orange
foreground: p:white
powerline_symbol:
options:
home_icon: ""
style: folder
style: powerline
template: " {{ .Path }} "
type: path
# Execution time
- background: p:darkred
foreground: p:white
powerline_symbol:
options:
always_enabled: true
style: round
style: powerline
template: " {{ .FormattedMs }} "
type: executiontime
# Exit code
- background: p:blue
background_templates:
- "{{ if gt .Code 0 }}p:red{{ end }}"
foreground: p:white
powerline_symbol:
options:
always_enabled: true
style: diamond
template: " {{ if gt .Code 0 }} {{ reason .Code }}{{ else }}{{ end }} "
trailing_diamond:
type: status
type: prompt
- alignment: right
segments:
# Shell
- background: p:black
foreground: p:white
style: plain
template: <p:black,transparent></> {{ .Name }}<transparent,p:black></>
type: shell
# Battery
- background_templates:
- '{{if eq "Charging" .State.String }}p:green{{end}}'
- '{{if eq "Discharging" .State.String}}p:orange{{end}}'
foreground: p:white
leading_diamond:
options:
charged_icon:
charging_icon:
discharging_icon: " "
style: diamond
template: " {{.Templates }}{{ .Percentage}} <transparent></>"
templates:
- '{{if eq "Discharging" .State.String}}{{if lt .Percentage 11}}{{else if lt .Percentage 21}}{{else if lt .Percentage 31}}{{else if lt .Percentage 41}}{{else if lt .Percentage 51}}{{else if lt .Percentage 61}}{{else if lt .Percentage 71}}{{else if lt .Percentage 81}}{{else if lt .Percentage 91}}{{else}}{{end}}{{end}}'
- '{{if eq "Charging" .State.String}}{{ if lt .Percentage 21}}{{else if lt .Percentage 31}}{{else if lt .Percentage 41}}{{else if lt .Percentage 61}}{{else if lt .Percentage 81}}{{else if lt .Percentage 91}}{{else}}{{end}}{{end}}'
templates_logic: first_match
type: battery
type: rprompt
final_space: true
console_title_template: {{ .Shell }} in {{ if ne .Folder "~"}} {{ .Folder }}{{else}}{{end}}
palette:
black: "#33395b"
blue: "#359ddd"
darkred: "#7c0a16"
green: "#277b48"
orange: "#ff972e"
red: "#de3142"
white: "#efeef4"
secondary_prompt:
background: transparent
foreground: p:white
template: " "
transient_prompt:
background: transparent
foreground: p:white
template: " "
version: 4