Skip to content

Commit a43d5d7

Browse files
authored
Merge pull request #272 from aleksander431/patch-1
Add brightness widget +fix for updates
2 parents ad90be1 + 16f1fd7 commit a43d5d7

2 files changed

Lines changed: 236 additions & 61 deletions

File tree

themes/764a14e0-2d6a-4826-994a-9289857886ba/config.yaml

Lines changed: 82 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ bars:
3535
widgets:
3636
left: [
3737
"power_menu",
38-
"apps"
38+
"apps",
39+
"systray"
3940
]
4041
center: [
4142
"media"
@@ -46,8 +47,8 @@ bars:
4647
"wifi",
4748
"bluetooth",
4849
"volume",
49-
"language",
50-
"systray"
50+
"brightness",
51+
"language"
5152
]
5253
layouts:
5354
left:
@@ -60,6 +61,41 @@ bars:
6061
alignment: "right"
6162
stretch: true
6263
widgets:
64+
brightness:
65+
type: "yasb.brightness.BrightnessWidget"
66+
options:
67+
label: "<span>{icon}</span>"
68+
label_alt: "Brightness {percent}%"
69+
tooltip: true
70+
hide_unsupported: true
71+
brightness_toggle_level: [0, 50, 100]
72+
auto_light: false
73+
auto_light_icon: "\udb80\udce1"
74+
auto_light_night_level: 35
75+
auto_light_night_start_time: "19:00"
76+
auto_light_night_end_time: "06:45"
77+
auto_light_day_level: 75
78+
brightness_icons: [
79+
"\udb80\udcde", # Icon for 0-25% brightness
80+
"\udb80\udcdd", # Icon for 26-50% brightness
81+
"\udb80\udcdf", # Icon for 51-75% brightness
82+
"\udb80\udce0" # Icon for 76-100% brightness
83+
]
84+
brightness_menu:
85+
blur: true
86+
round_corners: true
87+
round_corners_type: "normal"
88+
border_color: "System"
89+
alignment: "right"
90+
direction: "down"
91+
callbacks:
92+
on_left: "toggle_brightness_menu"
93+
on_middle: "toggle_label"
94+
label_shadow:
95+
enabled: true
96+
color: "black"
97+
radius: 3
98+
offset: [ 1, 1 ]
6399
wifi:
64100
type: "yasb.wifi.WifiWidget"
65101
options:
@@ -99,7 +135,7 @@ widgets:
99135
on_right: "exec cmd.exe /c start ms-settings:network"
100136
container_padding:
101137
top: 0
102-
left:
138+
left: 8
103139
bottom: 0
104140
right: 8
105141
wifi_icons: [
@@ -113,9 +149,9 @@ widgets:
113149
type: "yasb.systray.SystrayWidget"
114150
options:
115151
class_name: "systray"
116-
label_collapsed: "\uf137"
117-
label_expanded: "\uf138"
118-
label_position: "right" # Can be "left" or "right"
152+
label_collapsed: "\uf138"
153+
label_expanded: "\uf137"
154+
label_position: "left" # Can be "left" or "right"
119155
icon_size: 15 # Can be any integer between 8 and 64
120156
pin_click_modifier: "alt" # Can be "ctrl", "alt" or "shift"
121157
#show_unpinned: false
@@ -183,13 +219,13 @@ widgets:
183219
type: "yasb.active_window.ActiveWindowWidget"
184220
options:
185221
label: "{win[title]}"
186-
label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}' hwnd={win[hwnd]}]"
222+
label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}']"
187223
label_no_window: ""
188-
label_icon: true
224+
label_icon: false
189225
label_icon_size: 14
190226
max_length: 20
191227
max_length_ellipsis: "..."
192-
monitor_exclusive: false
228+
monitor_exclusive: true
193229
cpu:
194230
type: "yasb.cpu.CpuWidget"
195231
options:
@@ -267,18 +303,22 @@ widgets:
267303
media:
268304
type: "yasb.media.MediaWidget"
269305
options:
270-
label: "{title} - {artist}"
306+
label: "{title}{s}{artist}"
271307
label_alt: "{title}"
308+
separator: " - "
272309
max_field_size:
273-
label: 17
274-
label_alt: 24
310+
label: 20
311+
label_alt: 30
275312
show_thumbnail: true
276313
controls_only: false
277314
controls_left: true
278315
hide_empty: false
279316
thumbnail_alpha: 255
280317
thumbnail_padding: 0
281318
thumbnail_edge_fade: true
319+
progress_bar:
320+
enabled: true
321+
alignment: "top"
282322
icons:
283323
prev_track: "\uf048"
284324
next_track: "\uf051"
@@ -287,13 +327,14 @@ widgets:
287327
scrolling_label:
288328
enabled: true
289329
update_interval_ms: 30
290-
style: "left" # can be "left", "right", "bounce", "bounce-ease"
330+
style: "bounce" # can be "left", "right", "bounce", "bounce-ease"
291331
separator: " | "
292332
label_padding: 1
293333
# Easing curve params: https://www.desmos.com/calculator/j7eamemxzi
294334
ease_slope: 20
295335
ease_pos: 0.8
296336
ease_min: 0.5
337+
always_scroll: false
297338
media_menu:
298339
blur: true
299340
round_corners: true
@@ -321,7 +362,7 @@ widgets:
321362
label_shadow:
322363
enabled: true
323364
color: "black"
324-
radius: 3
365+
radius: 4
325366
offset: [ 1, 1 ]
326367
callbacks:
327368
on_left: "toggle_play_pause"
@@ -344,6 +385,11 @@ widgets:
344385
alignment: "center"
345386
direction: "down"
346387
distance: 6
388+
show_holidays: true
389+
show_week_numbers: true
390+
show_years: true
391+
country_code: "RU"
392+
extended: false
347393
container_padding:
348394
top: 0
349395
left: 8
@@ -385,8 +431,8 @@ widgets:
385431
cloudyNight: "\U0001F315"
386432
rainyDay: "\U0001F327"
387433
rainyNight: "\U0001F327\U0001F311"
388-
snowyDay: "\U00002744"
389-
snowyNight: "\U0001F328"
434+
snowyIcyDay: "\U00002744"
435+
snowyIcyNight: "\U0001F328"
390436
blizzardDay: "\U0001F32C"
391437
container_padding:
392438
top: 0
@@ -430,6 +476,10 @@ widgets:
430476
alignment: "right"
431477
direction: "down"
432478
distance: 6
479+
show_apps: true # Whether to show the list of applications with audio sessions
480+
show_app_labels: true # Whether to show application labels in the audio menu
481+
show_app_icons: true # Whether to show application icons in the audio menu
482+
show_apps_expanded: true # Whether application volumes are expanded by default when opening the menu
433483
container_padding:
434484
top: 0
435485
left: 8
@@ -461,34 +511,43 @@ widgets:
461511
options:
462512
container_padding:
463513
top: 0
464-
left: 4
514+
left: 0
465515
bottom: 0
466516
right: 0
467517
label: "{data}"
468518
app_list:
469519
- { icon: "\ueb03", launch: "cmd /c Taskmgr" }
470-
- { icon: "\uf282",launch: "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk" }
471520
- { icon: "\uf489", launch: "wt" }
472-
- { icon: "\uf07b", launch: "explorer" }
473-
- { icon: "\uee59",launch: "C:\\Users\\alex2\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\TeamSpeak.lnk" }
474521
- { icon: "\uf1b6",launch: "C:\\Users\\alex2\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Steam\\Steam.lnk" }
475-
- { icon: "\uf2c6",launch: "C:\\Program Files\\WindowsApps\\TelegramMessengerLLP.TelegramDesktop_5.15.2.0_x64__t4vj0pshhgkwm\\Telegram.exe" }
522+
- { icon: "\uee59",launch: "C:\\Users\\alex2\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\TeamSpeak.lnk" }
476523
taskbar:
477524
type: "yasb.taskbar.TaskbarWidget"
478525
options:
526+
tooltip: true
479527
animation:
480528
enabled: true
481529
duration: 100
482530
type: "fadeInOut"
483531
icon_size: 16
532+
preview:
533+
enabled: true
534+
width: 240
535+
delay: 400
536+
padding: 8
537+
margin: 8
484538
ignore_apps:
485539
processes: []
486540
titles: []
487541
classes: []
488542
callbacks:
489543
on_left: "toggle_window"
490544
on_middle: "close_app"
491-
on_right: "do_nothing"
545+
on_right: "context_menu"
546+
title_label:
547+
enabled: true
548+
show: "focused"
549+
min_length: 5
550+
max_length: 15
492551
bluetooth:
493552
type: "yasb.bluetooth.BluetoothWidget"
494553
options:

0 commit comments

Comments
 (0)