Skip to content

Commit c55f8b3

Browse files
fastfingeJanDeDobbeleer
authored andcommitted
add screen reader accessible theme
This is a more accessible version of the default theme that I use in my daily workflow, as a completely blind screen reader user. It removes all of the icons and replaces them with equivalent text-based abbreviations, changes all separators to be |, and removes some other graphical bits. I have no idea if it still looks good to sighted users, and that's why I never contributed it. But after I deleted my theme by mistake tonight, I figured I should maybe remake and contribute in case anyone else finds it useful. This is mostly for blind folks though, sighted people should probably just use the default.
1 parent 998d1fd commit c55f8b3

1 file changed

Lines changed: 221 additions & 0 deletions

File tree

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
3+
"blocks": [
4+
{
5+
"alignment": "left",
6+
"segments": [
7+
{
8+
"background": "#c386f1",
9+
"foreground": "#ffffff",
10+
"style": "diamond",
11+
"template": " {{ .UserName }} ",
12+
"trailing_diamond": "|",
13+
"type": "session"
14+
},
15+
{
16+
"background": "#ff479c",
17+
"foreground": "#ffffff",
18+
"powerline_symbol": "|",
19+
"options": {
20+
"folder_separator_icon": " / ",
21+
"home_icon": "~",
22+
"style": "folder"
23+
},
24+
"style": "powerline",
25+
"template": " {{ .Path }} ",
26+
"type": "path"
27+
},
28+
{
29+
"background": "#fffb38",
30+
"background_templates": [
31+
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
32+
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
33+
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
34+
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
35+
],
36+
"foreground": "#193549",
37+
"powerline_symbol": "|",
38+
"options": {
39+
"branch_template": "{{ trunc 25 .Branch }}",
40+
"fetch_status": true,
41+
"fetch_upstream_icon": true
42+
},
43+
"style": "powerline",
44+
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} [edit] {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} [staged] {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} [stash] {{ .StashCount }}{{ end }} ",
45+
"type": "git"
46+
},
47+
{
48+
"background": "#6CA35E",
49+
"foreground": "#ffffff",
50+
"powerline_symbol": "|",
51+
"options": {
52+
"fetch_version": true
53+
},
54+
"style": "powerline",
55+
"template": " [node] {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
56+
"type": "node"
57+
},
58+
{
59+
"background": "#8ED1F7",
60+
"foreground": "#111111",
61+
"powerline_symbol": "|",
62+
"options": {
63+
"fetch_version": true
64+
},
65+
"style": "powerline",
66+
"template": " [go] {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
67+
"type": "go"
68+
},
69+
{
70+
"background": "#4063D8",
71+
"foreground": "#111111",
72+
"powerline_symbol": "|",
73+
"options": {
74+
"fetch_version": true
75+
},
76+
"style": "powerline",
77+
"template": " [julia] {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
78+
"type": "julia"
79+
},
80+
{
81+
"background": "#FFDE57",
82+
"foreground": "#111111",
83+
"powerline_symbol": "|",
84+
"options": {
85+
"display_mode": "files",
86+
"fetch_virtual_env": false
87+
},
88+
"style": "powerline",
89+
"template": " [py] {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
90+
"type": "python"
91+
},
92+
{
93+
"background": "#AE1401",
94+
"foreground": "#ffffff",
95+
"powerline_symbol": "|",
96+
"options": {
97+
"display_mode": "files",
98+
"fetch_version": true
99+
},
100+
"style": "powerline",
101+
"template": " [rb] {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
102+
"type": "ruby"
103+
},
104+
{
105+
"background": "#FEAC19",
106+
"foreground": "#ffffff",
107+
"powerline_symbol": "|",
108+
"options": {
109+
"display_mode": "files",
110+
"fetch_version": false
111+
},
112+
"style": "powerline",
113+
"template": " [az]{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
114+
"type": "azfunc"
115+
},
116+
{
117+
"background_templates": [
118+
"{{if contains \"default\" .Profile}}#FFA400{{end}}",
119+
"{{if contains \"jan\" .Profile}}#f1184c{{end}}"
120+
],
121+
"foreground": "#ffffff",
122+
"powerline_symbol": "|",
123+
"options": {
124+
"display_default": false
125+
},
126+
"style": "powerline",
127+
"template": " [aws] {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
128+
"type": "aws"
129+
},
130+
{
131+
"background": "#ffff66",
132+
"foreground": "#111111",
133+
"powerline_symbol": "|",
134+
"style": "powerline",
135+
"template": " [root] ",
136+
"type": "root"
137+
},
138+
{
139+
"background": "#83769c",
140+
"foreground": "#ffffff",
141+
"options": {
142+
"always_enabled": true
143+
},
144+
"style": "plain",
145+
"template": "<transparent>|</> [time] {{ .FormattedMs }} ",
146+
"type": "executiontime"
147+
},
148+
{
149+
"background": "#00897b",
150+
"background_templates": [
151+
"{{ if gt .Code 0 }}#e91e63{{ end }}"
152+
],
153+
"foreground": "#ffffff",
154+
"options": {
155+
"always_enabled": true
156+
},
157+
"style": "diamond",
158+
"template": "<parentBackground>|</> {{ if gt .Code 0 }}[fail {{ .Code }}]{{ else }}[ok]{{ end }} ",
159+
"type": "status"
160+
}
161+
],
162+
"type": "prompt"
163+
},
164+
{
165+
"segments": [
166+
{
167+
"background": "#0077c2",
168+
"foreground": "#ffffff",
169+
"style": "plain",
170+
"template": "<#0077c2,transparent>|</> {{ .Name }} <transparent,#0077c2>|</>",
171+
"type": "shell"
172+
},
173+
{
174+
"background": "#1BD760",
175+
"foreground": "#111111",
176+
"invert_powerline": true,
177+
"powerline_symbol": "|",
178+
"options": {
179+
"paused_icon": "[paused] ",
180+
"playing_icon": "[playing] "
181+
},
182+
"style": "powerline",
183+
"template": " [yt] {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ",
184+
"type": "ytm"
185+
},
186+
{
187+
"background": "#f36943",
188+
"background_templates": [
189+
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
190+
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
191+
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
192+
],
193+
"foreground": "#ffffff",
194+
"invert_powerline": true,
195+
"powerline_symbol": "|",
196+
"options": {
197+
"charged_icon": "[charged] ",
198+
"charging_icon": "[charging] ",
199+
"discharging_icon": "[discharging] "
200+
},
201+
"style": "powerline",
202+
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} ",
203+
"type": "battery"
204+
},
205+
{
206+
"background": "#2e9599",
207+
"foreground": "#111111",
208+
"invert_powerline": true,
209+
"leading_diamond": "|",
210+
"style": "diamond",
211+
"template": " {{ .CurrentDate | date .Format }} ",
212+
"type": "time"
213+
}
214+
],
215+
"type": "rprompt"
216+
}
217+
],
218+
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
219+
"final_space": true,
220+
"version": 4
221+
}

0 commit comments

Comments
 (0)