-
Notifications
You must be signed in to change notification settings - Fork 2
/
sample.oxbar.conf
227 lines (210 loc) · 6.85 KB
/
sample.oxbar.conf
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# This is a sample configuration file for oxbar.
# By default, oxbar tries to load ~/.oxbar.conf on startup.
# That can be changed using `-F /path/to/another.conf` on the command line.
# Regardless of which config file oxbar loads, you can instruct a running
# instance of oxbar to reload that config (and theme) while running by
# sending it a HUP signal (typically just `pkill -HUP oxbar`).
#
# This sample configuration explains the format of the config file. Config
# files are parsed with fparseln(3), which is rather robust.
#
# Lines starting with '#' are comments and ignored.
# blank lines like the one above and below are ignored
# most lines look something like this, and alter some setting about oxbar
window.y = 0
window.y = 0 # comments can also be at the end of a line
# spacing can be flexible
window.y=0
window.y = 0
# lines can be continued with a trailing '\' at end of a line
window.y \
= \
0
# oxbar also supports "themes", which are a subset of settings in the config
# file starting with a line like:
# [ThemeName]
# which are then optionally loaded at runtime by running oxbar like this:
# $ oxbar [options] ThemeName
# When run like that, all lines in the config file before ANY theme name
# are treated as global and loaded, and then only lines AFTER [ThemeName], and
# before any other theme definition, are loaded. If no such line [ThemeName]
# appears in the config, oxbar reports an error and exits.
# This is useful when you run multiple instances of oxbar (say one for the top
# of your display and another at the bottom), or want to simply test different
# visuals quickly and easily (remember you can use a `pkill -HUP oxbar` to
# reload the config at runtime).
# If you only ever run one instance of oxbar, you do not need to define themes.
# Following that example, we now define some sample themes
# Shows nprocs/cpu/memory/net info on the top, distributed across the 3 regions
# Run via `oxbar top`
[top]
widgets = "< nprocs cpulong | memory > net"
window.x = 0
window.y = 0
window.w = -1
window.h = -1
gui.header_style = below
# Shows battery/time/volume distributed on the bottom
# Run via `oxbar bottom`
[bottom]
widgets = "< volume | time > battery"
window.x = 0
window.y = -1
window.w = -1
window.h = -1
gui.header_style = above
# This is an "island" theme - each widget is visually separated from the next
# Run via `oxbar islands`
[islands]
widgets = "nprocs cpu memory net > battery wifi bright volume time"
font.fgcolor = "fff"
window.x = 0
window.y = 0
window.w = -1
window.h = -1
window.bgcolor = "0000" # totally transparent
gui.widget_bgcolor = "000"
gui.spacing = 40
gui.margin = 0
gui.padding = "10 15 15 15"
gui.header_style = NONE
# A more colorful version of the above - each widget has a vibrant background
# Run via `oxbar islands-colorful`
[islands-colorful]
widgets = "nprocs cpu memory net > battery wifi bright volume time"
font.fgcolor = "fff"
window.x = 0
window.y = 0
window.w = -1
window.h = -1
window.bgcolor = "0000" # totally transparent
gui.widget_bgcolor = "000"
gui.spacing = 40
gui.margin = 0
gui.padding = "10 10 10 10"
gui.header_style = NONE
font.fgcolor = "000"
battery.bgcolor = "954e9e"
bright.bgcolor = "bf676e"
cpus.bgcolor = "ff9e00"
memory.bgcolor = "009ece"
net.bgcolor = "9ccf31"
nprocs.bgcolor = "ce0000"
time.bgcolor = "f7d708"
volume.bgcolor = "9ccf31"
wifi.bgcolor = "009ece"
memory.chart_color_active = "f00"
memory.chart_color_total = "ff0"
memory.chart_color_free = "0f0"
# This is an minimal theme - mostly text and just dark charts
# Run via `oxbar minimal`
[minimal]
widgets = "nprocs cpu memory net > battery wifi bright volume time"
font.fgcolor = "000"
font.desc = "Helvetica 20px"
window.x = 0
window.y = 0
window.w = -1
window.h = -1
window.bgcolor = "0000" # totally transparent
gui.spacing = 20
gui.margin = 0
gui.padding = "2 10 20 10"
gui.header_style = NONE
battery.chart_width = 10
battery.chart_bgcolor = "ccc"
battery.chart_pgcolor = "000"
battery.fgcolor_unplugged = "b00"
bright.chart_width = 10
bright.chart_bgcolor = "ccc"
bright.chart_pgcolor = "000"
volume.chart_width = 10
volume.chart_bgcolor = "ccc"
volume.chart_pgcolor = "000"
cpus.chart_bgcolor = "ccc"
cpus.chart_color_system = "000"
cpus.chart_color_interrupt = "222"
cpus.chart_color_user = "444"
cpus.chart_color_nice = "666"
cpus.chart_color_spin = "888"
cpus.chart_color_idle = "bbb"
memory.chart_bgcolor = "ccc"
memory.chart_color_active = "000"
memory.chart_color_total = "444"
memory.chart_color_free = "bbb"
net.inbound_chart_color_bgcolor = "ccc"
net.inbound_chart_color_pgcolor = "000"
net.inbound_text_fgcolor = "500"
net.outbound_chart_color_bgcolor = "ccc"
net.outbound_chart_color_pgcolor = "000"
net.inbound_text_fgcolor = "050"
time.format = "%A %d %B %Y %I:%M %p"
# A more pastel-based color scheme, similar to default sparc setups from yore
# Run via `oxbar pastel`
[pastels]
widgets = "nprocs cpu memory net > battery wifi bright volume time"
font.fgcolor = "000"
window.bgcolor = "fff"
gui.spacing = 2
gui.margin = 2
gui.padding = 5
gui.header_style = none
nprocs.bgcolor = "ffec94"
cpus.bgcolor = "ffaeae"
memory.bgcolor = "fff0aa"
net.bgcolor = "b0e57c"
battery.bgcolor= "b4d8e7"
bright.bgcolor = "c0f58c"
volume.bgcolor = "56baec"
time.bgcolor = "ff9e00"
wifi.bgcolor = "ff8c8c"
memory.chart_color_active = "f00"
memory.chart_color_total = "ff7f00"
memory.chart_color_free = "014141"
# My personal setup
[ryan]
widgets = "nprocs cpulong memory net > battery wifi bright volume time"
font.desc = "dejavu sans mono 17px"
window.bgcolor = "0000"
gui.widget_bgcolor = "0009"
gui.margin = 0
gui.padding = "0 5 7 5"
[ryan-bottom]
widgets = "nprocs cpulong memory net > battery wifi bright volume time"
font.desc = "dejavu sans mono 17px"
window.bgcolor = "0000"
gui.widget_bgcolor = "0009"
gui.margin = 0
gui.padding = "7 5 0 5"
window.y = -1
gui.header_style = above
# This defines a version of oxbar that looks just like old xstatbar
# Run via `oxbar xstatbar`
[xstatbar]
widgets = "cpulong memory nprocs battery volume bright wifi > time"
font.fgcolor = "ffffff"
font.desc = "fixed 16px"
window.x = 0
window.y = 0
window.w = -1
window.h = -1
window.bgcolor = "000"
gui.padding = 0
gui.widget_bgcolor = "000"
bright.chart_bgcolor = "f00"
bright.chart_pgcolor = "0f0"
cpus.chart_color_user = "f00"
cpus.chart_color_nice = "00f"
cpus.chart_color_system = "ff0"
cpus.chart_color_interrupt = "f0f"
cpus.chart_color_idle = "0f0"
cpus.chart_color_spin = "fff"
memory.chart_color_free = "0f0"
memory.chart_color_total = "ff0"
memory.chart_color_active = "f00"
battery.chart_bgcolor = "f00"
battery.chart_pgcolor = "0f0"
volume.chart_bgcolor = "f00"
volume.chart_pgcolor = "0f0"
time.fgcolor = "0ff"
time.format = "%a %d %b %Y %I:%M:%S %p"