This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathexample.config
212 lines (210 loc) · 5.75 KB
/
example.config
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
#Hi!, this config is not intended to become an example of beauty in yabar.
#It is just intended to show an example (specifically an example config that uses internal blocks) of what you can do using yabar.
bar-list = ["topbar"];
topbar:{
font: "Droid Sans, FontAwesome Bold 9";
block-list: ["ya_diskspace", "ya_ws", "ya_title", "ya_date", "ya_diskusage", "ya_volume", "ya_uptime", "ya_cpu", "ya_thermal", "ya_brightness", "ya_bw", "ya_mem", "ya_disk", "ya_bat", "ya_wifi"];
position: "top";
gap-horizontal: 10;
gap-vertical: 10;
#width: 1100;
height: 20;
//If you want transparency, use argb, not rgb
background-color-rgb: 0x000000;
underline-size: 2;
overline-size: 2;
slack-size: 4;
#border-size: 2;
#monitor: "LVDS1 HDMI1"; # get names from `xrandr`
# various examples for internal blocks:
ya_ws: {
exec: "YABAR_WORKSPACE";
align: "left";
fixed-size: 40;
internal-option1: " ";
}
ya_title: {
exec: "YABAR_TITLE";
align: "left";
justify: "left";
fixed-size: 300;
}
ya_date:{
exec: "YABAR_DATE";
align: "center";
fixed-size: 120;
interval: 2;
background-color-rgb:0x279DBD;
underline-color-rgb:0xC02942;
internal-prefix: " ";
internal-option1: "%a %d %b, %I:%M";
}
ya_diskusage:{
exec: "YABAR_DISKSPACE";
align: "right";
fixed-size: 120;
interval: 10;
internal-prefix: " ";
# examples for this option:
# "/dev/sda1" first partition of device sda
# "/dev/sdb" all mounted partitions of device sdb
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
# "/dev" all mounted partitions / logical volumes
internal-option1: "/dev/sda";
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
}
ya_volume:{
exec: "YABAR_VOLUME";
align: "right";
interval: 1;
internal-option1 : "default Master 0"; # device, mixer, index (separated by a space)
internal-option2 : "mapped"; # if set to 'mapped', use logarithmic scale (like `amixer -M` and `alsamixer`)
internal-option3 : " "; # characters to display when sound is on or off (separated by a space)
internal-suffix: "%";
background-color-rgb:0x529e67;
underline-color-rgb:0x91313b;
}
ya_uptime:{
exec: "YABAR_UPTIME";
align: "right";
fixed-size: 70;
interval: 1;
background-color-rgb:0x96B49C;
underline-color-rgb:0xF8CA00;
internal-prefix: " ";
#internal-spacing: true;
}
ya_mem:{
exec: "YABAR_MEMORY";
align: "right";
fixed-size: 70;
interval: 1;
background-color-rgb:0x45ADA8;
underline-color-rgb:0xFA6900;
internal-prefix: " ";
#internal-spacing: true;
}
ya_thermal: {
exec: "YABAR_THERMAL";
align: "right";
fixed-size: 40;
interval: 1;
background-color-rgb:0x309292;
underline-color-rgb:0xE08E79;
internal-option1: "thermal_zone0"; # one of /sys/class/thermal/NAME/temp
internal-option2: "70; 0xFFFFFFFF; 0xFFED303C"; #Critical Temperature, fg, bg
internal-option3: "58; 0xFFFFFFFF; 0xFFF4A345"; #Warning Temperature, fg, bg
internal-prefix: " ";
#internal-spacing: true;
}
ya_brightness: {
exec: "YABAR_BRIGHTNESS";
align: "right";
fixed-size: 40;
interval: 1;
background-color-rgb:0x81A8B8;
underline-color-rgb:0xBD1550;
internal-prefix: " ";
internal-option1: "intel_backlight"; # one of /sys/class/backlight/intel_backlight/brightness
#internal-spacing: true;
}
ya_bw: {
exec: "YABAR_BANDWIDTH";
align: "right";
fixed-size: 110;
interval: 1;
internal-prefix: " ";
internal-option1: "wlan0"; # "default" or network interface from `ifconfig` or `ip link`
internal-option2: " "; # characters to be placed before up/down data
#background-color-rgb:0x547980;
background-color-rgb:0x3EC9A7;
underline-color-rgb:0xD95B43;
#internal-spacing: true;
}
ya_cpu: {
exec: "YABAR_CPU";
align: "right";
fixed-size: 60;
interval: 1;
internal-prefix: " ";
internal-suffix: "%";
background-color-rgb:0x98D9B6;
underline-color-rgb:0xE97F02;
#internal-spacing: true;
}
ya_bat: {
exec: "YABAR_BATTERY";
align: "right";
fixed-size: 70;
interval: 1;
internal-suffix: "%";
internal-option1: "BAT0";
internal-option2: " ";
#internal-spacing: true;
}
ya_disk: {
exec: "YABAR_DISKIO";
align: "right";
fixed-size: 110;
interval: 1;
internal-prefix: " ";
internal-option1: "sda"; # name from `lsblk` or `ls /sys/class/block/`
internal-option2: " "; # characters to be placed before in/out data
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
#internal-spacing: true;
}
ya_diskspace: {
exec: "YABAR_DISKSPACE";
align: "left";
fixed-size: 120;
interval: 10;
internal-prefix: " ";
# examples for this option:
# "/dev/sda1" first partition of device sda
# "/dev/sdb" all mounted partitions of device sdb
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
# "/dev" all mounted partitions / logical volumes
internal-option1: "/dev/sda";
background-color-rgb:0x49708A;
underline-color-rgb:0xECD078;
}
ya_wifi: {
exec: "YABAR_WIFI";
internal-prefix: " ";
internal-suffix: " ";
internal-option1: "wlan0";
variable-size: true;
background-color-rgb: 0x444444;
}
title: {
exec: "xtitle -s";
align: "left";
fixed-size: 350;
type: "persist";
foreground-color-rgb:0xeeeeee;
underline-color-rgb:0x373b41;
overline-color-rgb:0x373b41;
}
# another example for an external block
date: {
exec: "date +'%a %d %b, %I:%M'";
align: "right";
fixed-size: 150;
type: "periodic";
interval: 1;
foreground-color-rgb:0x92D8F0;
underline-color-rgb:0xc0b929;
}
song:{
exec: "YABAR_SONG";
fixed-size: 200;
type: "periodic";
internal-option1: "spotify";
}
keyboard: {
exec: "YABAR_KEYBOARD_LAYOUT";
interval: 1;
}
}