-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
366 lines (341 loc) · 10.9 KB
/
config.yaml
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# Configuration for Yasb (Yet Another Status Bar)
# Author: @denBot & @ashwinjadhav818
# Last updated: 22/05/2024
# To check the options supported by any widget
## 1. Open this url - https://github.com/ashwinjadhav818/yasb/tree/main/src/core/validation
## 2. Browse for the widget name and check for the options supported
#
## Note - All the komorebi related widgets are under the komorebi folder and other widgets are under yasb folder.
# The bar.py contains the options for the yasb bar.
watch_stylesheet: true
watch_config: true
bars:
status-bar:
enabled: true
screens: ['*']
class_name: "yasb-bar"
alignment:
position: "top"
center: true
blur_effect:
enabled: false
acrylic: true
dark: false
window_flags:
always_on_top: false
windows_app_bar: true
dimensions:
width: "100%"
height: 35
padding:
top: 7
left: 0
bottom: 0
right: 0
widgets:
left:
[
"power_menu",
"komorebi_workspaces",
"komorebi_active_layout",
"media_player",
"weather",
]
center: ["active_window"]
right:
[
"cpu",
"memory",
"volume",
"wifi",
"battery",
"wallapers",
"clock",
"notification_button"
]
widgets:
active_window:
type: "yasb.active_window.ActiveWindowWidget"
options:
label: "{win[title]}"
label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}' hwnd={win[hwnd]}]"
label_no_window: "Desktop"
max_length: 56
label_icon: true
label_icon_size: 16
max_length_ellipsis: ".."
monitor_exclusive: false
flashing_windows:
type: "yasb.flashing_windows.FlashingWindowsWidget"
options:
label: "{win[title]}"
label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}' hwnd={win[hwnd]}]"
max_length: 48
max_length_ellipsis: "..."
callbacks:
on_left: "activate_window"
on_middle: "toggle_label"
on_right: "remove_window"
battery:
type: "yasb.battery.BatteryWidget"
options:
label: "<span>{icon}</span>{percent}%"
label_alt: "{icon} {percent}% | time: {time_remaining}"
charging_options:
icon_format: "{charging_icon}"
status_icons:
icon_charging: "\ue83e"
icon_critical: "\ue851"
icon_low: "\ue852"
icon_medium: "\ue855"
icon_high: "\ue858"
icon_full: "\ue83f"
clock:
type: "yasb.clock.ClockWidget"
options:
label: "{%a %d, %b %H:%M}"
label_alt: "{%A %d %B %Y, %H:%M}"
#timezones: ["Europe/London", "America/New_York"]
timezones: []
callbacks:
on_middle: "exec explorer.exe shell:Appsfolder\\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App"
on_right: "next_timezone"
cpu:
type: "yasb.cpu.CpuWidget"
options:
label: "<span>\ueea1</span> {info[percent][total]}%"
label_alt: "<span>\ueea1</span> {info[histograms][cpu_percent]}"
update_interval: 500
histogram_icons:
- "\u2581" # 0%
- "\u2581" # 10%
- "\u2582" # 20%
- "\u2583" # 30%
- "\u2584" # 40%
- "\u2585" # 50%
- "\u2586" # 60%
- "\u2587" # 70%
- "\u2588" # 80%+
histogram_num_columns: 10
callbacks:
on_right: "exec cmd /c Taskmgr"
memory:
type: "yasb.memory.MemoryWidget"
options:
label: "<span>\ueea0</span> {virtual_mem_free}"
label_alt: "<span>\ueea0</span> {virtual_mem_percent}%"
update_interval: 5000
callbacks:
on_right: "exec cmd /c Taskmgr"
komorebi_workspaces:
type: "komorebi.workspaces.WorkspaceWidget"
options:
label_offline: "Komorebi Offline"
label_workspace_btn: "\uf4c3"
label_default_name: "{index}"
label_zero_index: false
hide_empty_workspaces: false
preview_workspace: false
callbacks:
on_left: "activate"
on_middle: "rename_temporary"
on_right: "rename_permanent"
komorebi_active_layout:
type: "komorebi.active_layout.ActiveLayoutWidget"
options:
hide_if_offline: false
label: "{icon}"
layouts: ['bsp', 'columns', 'rows', 'grid', 'vertical_stack', 'horizontal_stack', 'ultrawide_vertical_stack']
layout_icons:
bsp: "[\\\\]"
columns: "[||]"
rows: "[==]"
grid: "[G]"
vertical_stack: "[V]="
horizontal_stack: "[H]="
ultrawide_vertical_stack: "||="
monocle: "[M]"
maximised: "[X]"
floating: "><>"
paused: "[P]"
callbacks:
on_left: "next_layout"
on_middle: "toggle_monocle"
on_right: "prev_layout"
wifi:
type: "yasb.wifi.WifiWidget"
options:
label: "<span>{wifi_icon}</span>"
label_alt: "<span>{wifi_icon}</span> {wifi_name}"
update_interval: 5000
wifi_icons:
- "\ue871" # 0% strength (no wifi)
- "\ue872" # 1-25% strength
- "\ue873" # 26-50% strength
- "\ue874" # 51-75% strength
- "\ue701" # 76-100% strength
callbacks:
on_left: "toggle_label"
on_middle: "do_nothing"
on_right: "exec cmd.exe /c start ms-settings:network"
disk:
type: "yasb.disk.DiskWidget"
options:
label: "\udb80\udeca {volume_label}{space[used][percent]:.1f}%"
label_alt: "\udb80\udeca {volume_label}{space[used][gb]:.1f}GB / {space[total][gb]:.1f}GB"
volume_label: "C:"
update_interval: 60000
callbacks:
on_left: "toggle_label"
on_middle: "do_nothing"
on_right: "exec cmd.exe /c start ms-settings:disksandvolumes"
volume:
type: "yasb.volume.VolumeWidget"
options:
label: "<span>{icon}</span> {level}"
label_alt: "{volume}"
volume_icons:
- "\uea85" # Icon for muted
- "\ue992" # Icon for 0-10% volume
- "\ue993" # Icon for 11-30% volume
- "\ue994" # Icon for 31-60% volume
- "\ue995" # Icon for 61-100% volume
callbacks:
on_left: "exec quick_settings"
on_middle: "do_nothing"
on_right: "exec cmd.exe /c start ms-settings:sound"
media_player:
type: "yasb.media_player.MediaWidget"
options:
label: "{title} - {artist}"
label_alt: "{title}"
update_interval: 1000
max_field_size:
label: 20
label_alt: 30
show_thumbnail: true
controls_only: false
controls_left: true
hide_empty: false
thumbnail_alpha: 80
thumbnail_padding: 8
thumbnail_corner_radius: 16 # Set to 0 for square corners
icons:
prev_track: "\ue892"
next_track: "\ue893"
play: "\ue768"
pause: "\ue769"
traffic:
type: "yasb.traffic.TrafficWidget"
options:
# can be: download_speed, download_justified, download_category, and same for upload
label: "\ueb01 \ueab4 {download_justified} | \ueab7 {upload_justified}"
label_alt: "\ueb01 \ueab4 {download_category} | \ueab7 {upload_category}"
update_interval: 1000 # Update interval should be a multiple of 1000
callbacks:
on_right: "exec cmd /c Taskmgr"
power_menu:
type: "yasb.power_menu.PowerMenuWidget"
options:
label: "\uf011"
blur_background: true
animation_duration: 200 # Milisecond
button_row: 3 # Number of buttons in row, min 1 max 5
buttons:
lock: ["\ue72e","Lock"]
# signout: ["\udb80\udf43","Sign out"]
sleep: ["\uf1db","Sleep"]
shutdown: ["\ue7e8","Shut Down"]
restart: ["\ue777","Restart"]
hibernate: ["\ue823","Hibernate"]
cancel: ["\ue711","Cancel"]
#force_shutdown: ["\uf011","Force Shut Down"]
#force_restart: ["\uead2","Force Restart"]
weather:
type: "yasb.weather.WeatherWidget"
options:
label: "<span>{icon}</span> {temp_c}"
label_alt: "Min {min_temp_c}, Max {max_temp_c}, Humidity {humidity}"
api_key: '3bf4cf9a7c3f40d6b31174128242807'
update_interval: 600 #Update interval in seconds, Min 600
hide_decimal: true
location: 'London UK' # You can use "USA Los Angeles 90006" {COUNTRY CITY ZIP_CODE}, or just city.
callbacks:
on_left: "toggle_label"
icons:
sunnyDay: "\ue30d"
clearNight: "\ue32b"
cloudyDay: "\udb81\udd99"
cloudyNight: "\ue311"
rainyDay: "\udb81\ude7e"
rainyNight: "\udb81\ude7e"
snowyIcyDay: "\udb81\udd98"
snowyIcyNight: "\udb81\udd98"
blizzard: "\uebaa"
default: "\uebaa"
# https://www.weatherapi.com/docs/
# Usage {temp_c}, {min_temp_c}, {max_temp_c}, {temp_f}, {min_temp_f}, {max_temp_f}, {location}, {humidity}, {icon}, {conditions}
wallapers:
type: "yasb.wallpapers.WallpapersWidget"
options:
label: "<span>\uef1f</span>"
image_path: "C:\\Users\\xxx\\Images" # Path to folder with images
change_automatically: false # Automatically change wallpaper
update_interval: 60 # If change_automatically is true, update interval in seconds
# Some custom widgets
explorer_button:
type: "yasb.custom.CustomWidget"
options:
label: "\uf07c"
label_alt: "Explorer"
class_name: "explorer-widget"
exec_options:
run_once: true
callbacks:
on_left: "exec explorer.exe"
on_right: "toggle_label"
ip_info:
type: "yasb.custom.CustomWidget"
options:
label: "\uf3c5 {data[city]}, {data[region]}"
label_alt: "\uf3c5 {data[ip]} [{data[country]}]"
class_name: "ip-info-widget"
exec_options:
run_cmd: "curl.exe https://ipinfo.io"
run_interval: 120000 # every 5 minutes
return_format: "json"
callbacks:
on_left: "toggle_label"
on_middle: "exec cmd /c ncpa.cpl" # open network settings
on_right: "exec cmd /c start https://ipinfo.io/{data[ip]} " # open ipinfo in browser
lang:
type: "yasb.custom.CustomWidget"
options:
label: "\udb80\udf0c {data}"
label_alt: "\udb81\udfd3 {data}"
class_name: "lang-widget"
exec_options:
run_cmd: "powershell add-type -assemblyname system.windows.forms;([system.windows.forms.inputlanguage]::currentinputlanguage).Culture.Name"
# run every 3 sec
run_interval: 3000
return_format: "string"
notification_button:
type: "yasb.custom.CustomWidget"
options:
label: "\uf0f3"
label_alt: "\uf49a"
class_name: "notification-widget"
callbacks:
on_left: "exec notification_center"
on_right: "toggle_label"
search_button:
type: "yasb.custom.CustomWidget"
options:
label: "\uf422"
label_alt: "\uf422 Search"
class_name: "search-widget"
exec_options:
run_once: true
callbacks:
on_left: "exec search"
on_right: "toggle_label"