This commit is contained in:
2026-06-03 14:51:49 +02:00
parent 590a8b60d8
commit 4116241b43
4 changed files with 1253 additions and 748 deletions
+184 -339
View File
@@ -1,13 +1,7 @@
# This is default and very simple configuration file for Yasb.
# For more information about configuration options, please visit the Wiki https://github.com/amnweb/yasb/wiki
watch_stylesheet: true
watch_config: true
debug: false
update_check: true # Enable automatic update check.
komorebi:
start_command: "komorebic start --whkd"
stop_command: "komorebic stop --whkd"
reload_command: "komorebic stop --whkd && komorebic start --whkd"
update_check: true
bars:
primary-bar:
enabled: true
@@ -18,14 +12,14 @@ bars:
center: false
animation:
enabled: true
duration: 1000
duration: 400
blur_effect:
enabled: true
acrylic: false
dark_mode: true
round_corners: true
dark_mode: false
round_corners: false
round_corners_type: "normal"
border_color: "System"
border_color: "system"
window_flags:
always_on_top: false
windows_app_bar: true
@@ -33,333 +27,207 @@ bars:
width: "100%"
height: 32
padding:
top: 6
left: 6
top: 0
left: 0
bottom: 0
right: 6
right: 0
widgets:
left: [
"glazewm_tiling_direction",
"glazewm_workspaces",
"pomodoro",
"active_window"
]
center: [
"clock"
]
right: [
"cava",
"media",
"weather",
"microphone",
"volume",
"cpu",
"memory",
"notifications",
"wallpapers",
"power_menu"
]
left:
- "home"
- "quick_launch"
center:
- "clock"
right:
- "systray"
- "cpu"
- "memory"
- "open_meteo"
- "volume"
- "notifications"
- "power_menu"
widgets:
home:
type: "yasb.home.HomeWidget"
options:
label: "<span>\udb81\udf17</span>"
label: "<span>\ue700</span>"
menu_list:
- { title: "My Crib", path: "~" }
- { title: "Loot Bag", path: "~\\Downloads" }
- { title: "Boring Stuff", path: "~\\Documents" }
- { title: "Cursed Memories", path: "~\\Pictures" }
- { title: "User Home", path: "~" }
- { title: "Download", path: "~\\Downloads" }
- { title: "Documents", path: "~\\Documents" }
- { title: "Pictures", path: "~\\Pictures" }
system_menu: true
power_menu: true
blur: false
media:
type: "yasb.media.MediaWidget"
options:
label: "<span>\uf001</span> {title}"
label_alt: "<span>\uf001</span> {artist}"
callbacks:
on_left: "toggle_media_menu"
on_middle: "do_nothing"
on_right: "do_nothing"
max_field_size:
label: 50
label_alt: 24
show_thumbnail: false
controls_only: false
controls_left: true
hide_empty: true
thumbnail_alpha: 250
thumbnail_padding: 8
thumbnail_corner_radius: 0
icons:
prev_track: ""
next_track: ""
play: ""
pause: ""
active_window:
type: "yasb.active_window.ActiveWindowWidget"
blur: true
round_corners: true
round_corners_type: "normal"
border_color: "System"
alignment: "center"
quick_launch:
type: "yasb.quick_launch.QuickLaunchWidget"
options:
label: "{win[title]}"
label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}' hwnd={win[hwnd]}]"
label_no_window: ""
label_icon: true
label_icon_size: 14
max_length: 46
max_length_ellipsis: "..."
monitor_exclusive: true
label: "<span>\ue721</span>"
search_placeholder: "Search applications..."
max_results: 30
show_icons: true
icon_size: 16
compact_text: true
providers:
apps:
enabled: true
prefix: "*"
priority: 0
show_recent: true
max_recent: 5
show_description: true
popup:
width: 720
height: 480
blur: true
round_corners: true
round_corners_type: "normal"
border_color: "system"
dark_mode: true
callbacks:
on_left: "toggle_quick_launch"
keybindings:
- keys: "alt+space"
action: "toggle_quick_launch"
screen: "primary"
clock:
type: "yasb.clock.ClockWidget"
options:
label: "{%I:%M:%S}"
label_alt: "{%I:%M:%S}"
label: "{%a, %d %b %H:%M}"
label_alt: "{%A, %d %B %Y %H:%M}"
timezones: []
calendar:
blur: true
round_corners: true
alignment: "center"
direction: "down"
extended: false
show_years: true
show_holidays: false
show_week_numbers: true
callbacks:
on_left: "toggle_calendar"
weather:
type: "yasb.weather.WeatherWidget"
on_middle: "toggle_label"
on_right: "context_menu"
systray:
type: yasb.systray.SystrayWidget
options:
label: "<span>{icon}</span> {temp}"
class_name: systray
label_collapsed: "\ue70d"
label_expanded: "\ue70e"
label_position: right
pin_click_modifier: ctrl
show_unpinned: false
show_battery: false
show_volume: false
icon_size: 16
use_hook: true
show_in_popup: true
icons_per_row: 5
popup:
blur: true
round_corners: true
round_corners_type: "normal"
border_color: None
alignment: "center"
direction: "down"
offset_top: 6
offset_left: 0
open_meteo:
type: "yasb.open_meteo.OpenMeteoWidget"
options:
label: "<span>\ue706</span>{temp}"
label_alt: "{location}: Min {min_temp}, Max {max_temp}, Humidity {humidity}"
api_key: # Get your free API key from https://www.weatherapi.com/
tooltip: true
update_interval: 600
hide_decimal: true
location: # You can use "USA Los Angeles 90006" {COUNTRY CITY ZIP_CODE}, or just city.
units: "metric"
callbacks:
on_left: "toggle_card"
on_middle: "do_nothing"
on_right: "toggle_label"
icons:
sunnyDay: "\ue30d"
clearNight: "\ue32b"
cloudyDay: "\ue312"
cloudyNight: "\ue311"
rainyDay: "\ue308"
rainyNight: "\ue333"
snowyIcyDay: "\ue30a"
snowyIcyNight: "\ue335"
blizzardDay: "\udb83\udf36"
blizzardNight: "\udb83\udf36"
foggyDay: "\ue303"
foggyNight: "\ue346"
thunderstormDay: "\ue30f"
thunderstormNight: "\ue338"
default: "\uebaa"
sunnyDay: "\ue706"
clearNight: "\uec46"
weather_card:
blur: True
round_corners: True
round_corners_type: "normal"
border_color: "System"
blur: true
alignment: "right"
direction: "down"
icon_size: 64
show_hourly_forecast: True # Set to False to disable hourly forecast
time_format: "12h" # can be 12h or 24h
icon_size: 32
show_hourly_forecast: true
time_format: "24h"
hourly_point_spacing: 76
hourly_icon_size: 32 # better to set 16, 32 or 64 for better quality
icon_smoothing: true # should be true for smoother icon or false for sharper icon if using 16, 32 or 64 for hourly_icon_size
temp_line_width: 2 # can be 0 to hide the temperature line
hourly_icon_size: 16
icon_smoothing: true
temp_line_width: 2
current_line_color: "#8EAEE8"
current_line_width: 1 # can be 0 to hide the current hour line
current_line_width: 1
current_line_style: "dot"
label_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
hourly_forecast_buttons:
enabled: false
weather_animation:
enabled: true
snow_overrides_rain: true
temp_line_animation_style: both
rain_effect_intensity: 1.0
snow_effect_intensity: 1.0
scale_with_chance: true
volume:
type: "yasb.volume.VolumeWidget"
options:
label: "<span>{icon}</span> {level}"
label_alt: "{volume}"
tooltip: false
label: "<span>{icon}</span>"
label_alt: "<span>{icon}</span>{level}"
tooltip: true
volume_icons:
- "\ueee8"
- "\uf026"
- "\uf027"
- "\uf027"
- "\uf028"
- "\ue74f"
- "\ue992"
- "\ue993"
- "\ue994"
- "\ue995"
callbacks:
on_left: "toggle_mute"
on_right: "exec cmd.exe /c start ms-settings:sound"
microphone:
type: "yasb.microphone.MicrophoneWidget"
options:
label: "<span>{icon}</span> {level}"
label_alt: "<span>{icon}</span> {level}%"
icons:
normal: "\udb80\udf6c"
muted: "\udb80\udf6d"
callbacks:
on_left: "toggle_mute"
on_middle: "toggle_label"
on_right: "exec cmd.exe /c start ms-settings:sound"
power_menu:
type: "yasb.power_menu.PowerMenuWidget"
options:
label: "\uf011"
uptime: True
blur: False
blur_background: True
animation_duration: 200
button_row: 5
buttons:
shutdown: ["\uf011", "Rage Quit"]
restart: ["\uead2", "Oops, Reboot"]
signout: ["\udb80\udf43", "Dip Out"]
hibernate: ["\uf28e", "Bear Mode"]
sleep: ["\u23fe", "Nap Time"]
cancel: ["", "Nah, Im Good "]
apps:
type: "yasb.applications.ApplicationsWidget"
options:
container_padding:
top: 0
left: 8
bottom: 0
right: 8
label: "{data}"
app_list:
- { icon: "\ueb03", launch: "cmd /c Taskmgr" }
- { icon: "\uf489", launch: "wt"}
notifications:
type: "yasb.notifications.NotificationsWidget"
options:
label: "<span>\uf476</span> {count}"
label_alt: "{count} notifications"
hide_empty: true
tooltip: false
callbacks:
on_left: "toggle_notification"
on_right: "do_nothing"
on_middle: "toggle_label"
wallpapers:
type: "yasb.wallpapers.WallpapersWidget"
options:
label: "<span>\udb83\ude09</span>"
image_path: # Example path to folder with images
change_automatically: false # Automatically change wallpaper
update_interval: 60 # If change_automatically is true, update interval in seconds
gallery:
enabled: true
blur: true
image_width: 220
image_per_page: 8
show_buttons: true
orientation: "portrait"
image_spacing: 8
lazy_load: true
lazy_load_delay: 80
lazy_load_fadein: 400
image_corner_radius: 20
enable_cache: true
cava:
type: "yasb.cava.CavaWidget"
options:
bar_height: 12
min_bar_height: 0
gradient: 1
reverse: 0
foreground: "#89b4fa"
gradient_color_1: '#74c7ec'
gradient_color_2: '#89b4fa'
gradient_color_3: '#cba6f7'
bars_number: 8
bar_spacing: 2
bar_width: 4
hide_empty: true
container_padding:
top: 0
left: 8
bottom: 0
right: 8
on_left: "toggle_volume_menu"
on_right: "toggle_mute"
cpu:
type: "yasb.cpu.CpuWidget"
options:
label: "<span>\uf4bc</span> {info[percent][total]}"
label_alt: "<span>\uf437</span> {info[histograms][cpu_percent]}"
label: "<span>\ueea1</span> {info[percent][total]}%"
label_alt: "<span>\ueea1</span> {info[freq][current]} MHz"
update_interval: 2000
cpu_thresholds:
low: 25
medium: 50
high: 90
histogram_icons:
- "\u2581" # 0%
- "\u2581" # 10%
- "\u2582" # 20%
- "\u2583" # 30%
- "\u2584" # 40%
- "\u2585" # 50%
- "\u2586" # 60%
- "\u2587" # 70%
- "\u2588" # 80%+
histogram_num_columns: 8
callbacks:
on_right: "exec cmd /c Taskmgr"
label_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
glazewm_workspaces:
type: "glazewm.workspaces.GlazewmWorkspacesWidget"
options:
# Offline behavior (matching komorebi's label_offline and hide_if_offline)
offline_label: "GlazeWM Offline"
hide_if_offline: true
# Workspace display labels (matching komorebi's label_workspace_btn and label_workspace_active_btn)
populated_label: "\udb85\udcfc"
empty_label: "\udb85\udcfc"
active_populated_label: "\udb85\udcfb"
active_empty_label: "\udb85\udcfb"
# Workspace management (matching komorebi's hide_empty_workspaces)
hide_empty_workspaces: false
# Server connection
glazewm_server_uri: "ws://localhost:6123"
# Additional GlazeWM-specific options (keeping defaults)
enable_scroll_switching: true
reverse_scroll_direction: true
container_padding:
top: 0
left: 0
bottom: 0
right: 0
glazewm_tiling_direction:
type: "glazewm.tiling_direction.GlazewmTilingDirectionWidget"
options:
horizontal_label: "\udb81\udce1"
vertical_label: "\udb81\udce2"
btn_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
pomodoro:
type: "yasb.pomodoro.PomodoroWidget"
options:
label: "<span>{icon}</span> {remaining}"
label_alt: "<span>{icon}</span> {session}/{total_sessions} - {status}"
work_duration: 25
break_duration: 5
long_break_duration: 15
long_break_interval: 4
auto_start_breaks: true
auto_start_work: true
sound_notification: true
show_notification: true
hide_on_break: false
session_target: 8
icons:
work: "\uf252"
break: "\uf253"
paused: "\uf254"
container_padding:
top: 0
left: 12
bottom: 0
right: 12
menu:
enabled: true
show_graph: true
show_graph_grid: true
graph_history_size: 60
callbacks:
on_left: toggle_menu
on_middle: do_nothing
on_right: toggle_label
memory:
type: "yasb.memory.MemoryWidget"
options:
label: "<span>\ueea1</span> {virtual_mem_free}"
label_alt: "<span>\ueea1</span> VIRT: {virtual_mem_percent}% SWAP: {swap_mem_percent}%"
update_interval: 5000
callbacks:
on_left: "toggle_menu"
on_middle: "do_nothing"
on_right: "toggle_label"
menu:
enabled: true
show_graph: true
show_graph_grid: true
graph_history_size: 60
power_menu:
type: "yasb.power_menu.PowerMenuWidget"
options:
label: "<span>\ue712</span>"
uptime: true
show_user: true
menu_style: "popup"
popup:
blur: true
round_corners: true
round_corners_type: "normal"
@@ -368,46 +236,23 @@ widgets:
direction: "down"
offset_top: 6
offset_left: 0
circle_background_color: "#09ffffff"
circle_work_progress_color: "#88c0d0"
circle_break_progress_color: "#a3be8c"
circle_thickness: 8
circle_size: 160
callbacks:
on_left: "toggle_menu"
on_middle: "reset_timer"
on_right: "toggle_label"
label_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
memory:
type: "yasb.memory.MemoryWidget"
profile_image_size: 64
buttons:
lock: ["\ue72e", "Lock"]
signout: ["\uf3b1", "Sign out"]
sleep: ["\uec46", "Sleep"]
hibernate: ["\ue66d", "Hibernate"]
restart: ["\ue72c", "Restart"]
shutdown: ["\ue7e8", "Shut Down"]
cancel: ["", "Cancel"]
notifications:
type: "yasb.notifications.NotificationsWidget"
options:
label: "<span>\uf4bc</span> {virtual_mem_percent}"
label_alt: "<span>\uf4bc</span> VIRT: {virtual_mem_percent}% SWAP: {swap_mem_percent}%"
update_interval: 5000
label: "<span>\uf2a3</span>"
label_alt: "{count} notifications"
hide_empty: true
tooltip: false
callbacks:
on_left: "toggle_label"
on_middle: "do_nothing"
on_left: "toggle_notification"
on_right: "do_nothing"
memory_thresholds:
low: 25
medium: 50
high: 90
histogram_icons:
- "\u2581" # 0%
- "\u2581" # 10%
- "\u2582" # 20%
- "\u2583" # 30%
- "\u2584" # 40%
- "\u2585" # 50%
- "\u2586" # 60%
- "\u2587" # 70%
- "\u2588" # 80%+
label_shadow:
enabled: true
color: "black"
radius: 3
offset: [ 1, 1 ]
on_middle: "do_nothing"