bal_gennady

yasb-config-example

Sep 29th, 2025 (edited)
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 12.16 KB | Software | 0 0
  1. # Это стандартный и очень простой файл конфигурации для Yasb.
  2. # Для получения дополнительной информации о вариантах конфигурации,
  3. #   пожалуйста, посетите Wiki https://github.com/amnweb/yasb/wiki
  4. watch_stylesheet: true
  5. watch_config: true
  6. debug: false
  7. update_check: true # Включить автоматическую проверку обновлений.
  8. komorebi:
  9.   start_command: "komorebic start --whkd"
  10.   stop_command: "komorebic stop --whkd"
  11.   reload_command: "komorebic stop --whkd && komorebic start --whkd"
  12. bars:
  13.   primary-bar:
  14.     enabled: true
  15.     screens: ["primary"]
  16.     class_name: "yasb-bar"
  17.     alignment:
  18.       position: "top"
  19.       center: false
  20.     animation:
  21.       enabled: true
  22.       duration: 1000
  23.     blur_effect:
  24.       enabled: true
  25.       acrylic: false
  26.       dark_mode: true
  27.       round_corners: true
  28.       round_corners_type: "normal"
  29.       border_color: "System"
  30.     window_flags:
  31.       always_on_top: false
  32.       windows_app_bar: true
  33.     dimensions:
  34.       width: "100%"
  35.       height: 32
  36.     padding:
  37.       top: 6
  38.       left: 6
  39.       bottom: 0
  40.       right: 6
  41.     widgets:
  42.       left: [
  43.         "glazewm_tiling_direction",
  44.         "glazewm_workspaces",
  45.         "pomodoro",      
  46.         "active_window"
  47.       ]
  48.       center: [
  49.         "clock"
  50.       ]
  51.       right: [
  52.         "cava",
  53.         "media",
  54.         "weather",
  55.         "microphone",
  56.         "volume",
  57.         "cpu",
  58.         "memory",
  59.         "notifications",
  60.         "wallpapers",
  61.         "power_menu"
  62.         ]
  63. widgets:
  64.   home:
  65.     type: "yasb.home.HomeWidget"
  66.     options:
  67.       label: "<span>\udb81\udf17</span>"
  68.       menu_list:
  69.       - { title: "My Crib", path: "~" }
  70.       - { title: "Loot Bag", path: "~\\Downloads" }
  71.       - { title: "Boring Stuff", path: "~\\Documents" }
  72.       - { title: "Cursed Memories", path: "~\\Pictures" }
  73.       system_menu: true
  74.       power_menu: true
  75.       blur: false
  76.   media:
  77.       type: "yasb.media.MediaWidget"
  78.       options:
  79.         label: "<span>\uf001</span> {title}"
  80.         label_alt: "<span>\uf001</span> {artist}"
  81.         callbacks:
  82.           on_left: "toggle_media_menu"
  83.           on_middle: "do_nothing"
  84.           on_right: "do_nothing"
  85.         max_field_size:
  86.           label: 50
  87.           label_alt: 24
  88.         show_thumbnail: false
  89.         controls_only: false
  90.         controls_left: true
  91.         hide_empty: true
  92.         thumbnail_alpha: 250
  93.         thumbnail_padding: 8
  94.         thumbnail_corner_radius: 0
  95.         icons:
  96.           prev_track: ""
  97.           next_track: ""
  98.           play: ""
  99.           pause: ""
  100.   active_window:
  101.     type: "yasb.active_window.ActiveWindowWidget"
  102.     options:
  103.       label: "{win[title]}"
  104.       label_alt: "[class_name='{win[class_name]}' exe='{win[process][name]}' hwnd={win[hwnd]}]"
  105.       label_no_window: ""
  106.       label_icon: true
  107.       label_icon_size: 14
  108.       max_length: 46
  109.       max_length_ellipsis: "..."
  110.       monitor_exclusive: true
  111.   clock:
  112.     type: "yasb.clock.ClockWidget"
  113.     options:
  114.       label: "{%I:%M:%S}"
  115.       label_alt: "{%I:%M:%S}"
  116.       timezones: []
  117.       callbacks:
  118.         on_left: "toggle_calendar"
  119.   weather:
  120.     type: "yasb.weather.WeatherWidget"
  121.     options:
  122.       label: "<span>{icon}</span> {temp}"
  123.       label_alt: "{location}: Min {min_temp}, Max {max_temp}, Humidity {humidity}"
  124.       api_key: # Get your free API key from https://www.weatherapi.com/
  125.       update_interval: 600
  126.       hide_decimal: true
  127.       location: # You can use "USA Los Angeles 90006" {COUNTRY CITY ZIP_CODE}, or just city.
  128.       callbacks:
  129.         on_left: "toggle_card"
  130.       icons:
  131.         sunnyDay: "\ue30d"
  132.         clearNight: "\ue32b"
  133.         cloudyDay: "\ue312"
  134.         cloudyNight: "\ue311"
  135.         rainyDay: "\ue308"
  136.         rainyNight: "\ue333"
  137.         snowyIcyDay: "\ue30a"
  138.         snowyIcyNight: "\ue335"
  139.         blizzardDay: "\udb83\udf36"
  140.         blizzardNight: "\udb83\udf36"
  141.         foggyDay: "\ue303"
  142.         foggyNight: "\ue346"
  143.         thunderstormDay: "\ue30f"
  144.         thunderstormNight: "\ue338"
  145.         default: "\uebaa"
  146.       weather_card:
  147.         blur: True
  148.         round_corners: True
  149.         round_corners_type: "normal"
  150.         border_color: "System"
  151.         alignment: "right"
  152.         direction: "down"
  153.         icon_size: 64
  154.         show_hourly_forecast: True # Set to False to disable hourly forecast
  155.         time_format: "12h" # can be 12h or 24h
  156.         hourly_point_spacing: 76
  157.         hourly_icon_size: 32 # better to set 16, 32 or 64 for better quality
  158.         icon_smoothing: true # should be true for smoother icon or false for sharper icon if using 16, 32 or 64 for hourly_icon_size
  159.         temp_line_width: 2 # can be 0 to hide the temperature line
  160.         current_line_color: "#8EAEE8"
  161.         current_line_width: 1 # can be 0 to hide the current hour line
  162.         current_line_style: "dot"
  163.       label_shadow:
  164.         enabled: true
  165.         color: "black"
  166.         radius: 3
  167.         offset: [ 1, 1 ]
  168.   volume:
  169.     type: "yasb.volume.VolumeWidget"
  170.     options:
  171.       label: "<span>{icon}</span> {level}"
  172.       label_alt: "{volume}"
  173.       tooltip: false
  174.       volume_icons:
  175.        - "\ueee8"
  176.         - "\uf026"
  177.         - "\uf027"
  178.         - "\uf027"
  179.         - "\uf028"
  180.       callbacks:
  181.         on_left: "toggle_mute"
  182.         on_right: "exec cmd.exe /c start ms-settings:sound"
  183.   microphone:
  184.     type: "yasb.microphone.MicrophoneWidget"
  185.     options:
  186.       label: "<span>{icon}</span> {level}"
  187.       label_alt: "<span>{icon}</span> {level}%"
  188.       icons:
  189.         normal: "\udb80\udf6c"
  190.         muted: "\udb80\udf6d"
  191.       callbacks:
  192.         on_left: "toggle_mute"
  193.         on_middle: "toggle_label"
  194.         on_right: "exec cmd.exe /c start ms-settings:sound"
  195.   power_menu:
  196.     type: "yasb.power_menu.PowerMenuWidget"
  197.     options:
  198.       label: "\uf011"
  199.       uptime: True
  200.       blur: False
  201.       blur_background: True
  202.       animation_duration: 200
  203.       button_row: 5
  204.       buttons:
  205.         shutdown: ["\uf011", "Rage Quit"]
  206.         restart: ["\uead2", "Oops, Reboot"]
  207.         signout: ["\udb80\udf43", "Dip Out"]
  208.         hibernate: ["\uf28e", "Bear Mode"]
  209.         sleep: ["\u23fe", "Nap Time"]
  210.         cancel: ["", "Nah, Im Good "]
  211.   apps:
  212.     type: "yasb.applications.ApplicationsWidget"
  213.     options:
  214.       container_padding:
  215.         top: 0
  216.         left: 8
  217.         bottom: 0
  218.         right: 8
  219.       label: "{data}"
  220.       app_list:
  221.         - { icon: "\ueb03", launch: "cmd /c Taskmgr" }
  222.         - { icon: "\uf489", launch: "wt"}
  223.   notifications:
  224.     type: "yasb.notifications.NotificationsWidget"
  225.     options:
  226.       label: "<span>\uf476</span> {count}"
  227.       label_alt: "{count} notifications"
  228.       hide_empty: true
  229.       tooltip: false
  230.       callbacks:
  231.         on_left: "toggle_notification"
  232.         on_right: "do_nothing"
  233.         on_middle: "toggle_label"
  234.   wallpapers:
  235.     type: "yasb.wallpapers.WallpapersWidget"
  236.     options:
  237.       label: "<span>\udb83\ude09</span>"
  238.       image_path: # Example path to folder with images
  239.       change_automatically: false # Automatically change wallpaper
  240.       update_interval: 60 # If change_automatically is true, update interval in seconds
  241.       gallery:
  242.           enabled: true
  243.           blur: true
  244.           image_width: 220
  245.           image_per_page: 8
  246.           show_buttons: true
  247.           orientation: "portrait"
  248.           image_spacing: 8
  249.           lazy_load: true
  250.           lazy_load_delay: 80
  251.           lazy_load_fadein: 400
  252.           image_corner_radius: 20
  253.           enable_cache: true
  254.   cava:
  255.     type: "yasb.cava.CavaWidget"
  256.     options:
  257.       bar_height: 12
  258.       min_bar_height: 0
  259.       gradient: 1
  260.       reverse: 0
  261.       foreground: "#89b4fa"
  262.       gradient_color_1: '#74c7ec'
  263.       gradient_color_2: '#89b4fa'
  264.       gradient_color_3: '#cba6f7'
  265.       bars_number: 8
  266.       bar_spacing: 2
  267.       bar_width: 4
  268.       hide_empty: true
  269.       container_padding:
  270.         top: 0
  271.         left: 8
  272.         bottom: 0
  273.         right: 8
  274.   cpu:
  275.     type: "yasb.cpu.CpuWidget"
  276.     options:
  277.       label: "<span>\uf4bc</span> {info[percent][total]}"
  278.       label_alt: "<span>\uf437</span> {info[histograms][cpu_percent]}"
  279.       update_interval: 2000
  280.       cpu_thresholds:
  281.         low: 25
  282.         medium: 50
  283.         high: 90
  284.       histogram_icons:
  285.        - "\u2581" # 0%
  286.         - "\u2581" # 10%
  287.         - "\u2582" # 20%
  288.         - "\u2583" # 30%
  289.         - "\u2584" # 40%
  290.         - "\u2585" # 50%
  291.         - "\u2586" # 60%
  292.         - "\u2587" # 70%
  293.         - "\u2588" # 80%+
  294.       histogram_num_columns: 8
  295.       callbacks:
  296.         on_right: "exec cmd /c Taskmgr"
  297.       label_shadow:
  298.         enabled: true
  299.         color: "black"
  300.         radius: 3
  301.         offset: [ 1, 1 ]
  302.   glazewm_workspaces:
  303.     type: "glazewm.workspaces.GlazewmWorkspacesWidget"
  304.     options:
  305.      # Offline behavior (matching komorebi's label_offline and hide_if_offline)
  306.       offline_label: "GlazeWM Offline"
  307.       hide_if_offline: true
  308.      
  309.       # Workspace display labels (matching komorebi's label_workspace_btn and label_workspace_active_btn)
  310.       populated_label: "\udb85\udcfc"
  311.       empty_label: "\udb85\udcfc"
  312.       active_populated_label: "\udb85\udcfb"
  313.       active_empty_label: "\udb85\udcfb"
  314.      
  315.       # Workspace management (matching komorebi's hide_empty_workspaces)
  316.       hide_empty_workspaces: false
  317.      
  318.       # Server connection
  319.       glazewm_server_uri: "ws://localhost:6123"
  320.      
  321.       # Additional GlazeWM-specific options (keeping defaults)
  322.       enable_scroll_switching: true
  323.       reverse_scroll_direction: true
  324.       container_padding:
  325.         top: 0
  326.         left: 0
  327.         bottom: 0
  328.         right: 0
  329.   glazewm_tiling_direction:
  330.     type: "glazewm.tiling_direction.GlazewmTilingDirectionWidget"
  331.     options:
  332.       horizontal_label: "\udb81\udce1"
  333.       vertical_label: "\udb81\udce2"
  334.       btn_shadow:
  335.         enabled: true
  336.         color: "black"
  337.         radius: 3
  338.         offset: [ 1, 1 ]
  339.   pomodoro:
  340.     type: "yasb.pomodoro.PomodoroWidget"
  341.     options:
  342.       label: "<span>{icon}</span> {remaining}"
  343.       label_alt: "<span>{icon}</span> {session}/{total_sessions} - {status}"
  344.       work_duration: 25
  345.       break_duration: 5
  346.       long_break_duration: 15
  347.       long_break_interval: 4
  348.       auto_start_breaks: true
  349.       auto_start_work: true
  350.       sound_notification: true
  351.       show_notification: true
  352.       hide_on_break: false
  353.       session_target: 8
  354.       icons:
  355.         work: "\uf252"
  356.         break: "\uf253"
  357.         paused: "\uf254"
  358.       container_padding:
  359.         top: 0
  360.         left: 12
  361.         bottom: 0
  362.         right: 12
  363.       menu:
  364.         blur: true
  365.         round_corners: true
  366.         round_corners_type: "normal"
  367.         border_color: "System"
  368.         alignment: "right"
  369.         direction: "down"
  370.         offset_top: 6
  371.         offset_left: 0
  372.         circle_background_color: "#09ffffff"
  373.         circle_work_progress_color: "#88c0d0"
  374.         circle_break_progress_color: "#a3be8c"
  375.         circle_thickness: 8
  376.         circle_size: 160
  377.       callbacks:
  378.         on_left: "toggle_menu"
  379.         on_middle: "reset_timer"
  380.         on_right: "toggle_label"
  381.       label_shadow:
  382.         enabled: true
  383.         color: "black"
  384.         radius: 3
  385.         offset: [ 1, 1 ]
  386.   memory:
  387.     type: "yasb.memory.MemoryWidget"
  388.     options:
  389.       label: "<span>\uf4bc</span> {virtual_mem_percent}"
  390.       label_alt: "<span>\uf4bc</span> VIRT: {virtual_mem_percent}% SWAP: {swap_mem_percent}%"
  391.       update_interval: 5000
  392.       callbacks:
  393.         on_left: "toggle_label"
  394.         on_middle: "do_nothing"
  395.         on_right: "do_nothing"
  396.       memory_thresholds:
  397.         low: 25
  398.         medium: 50
  399.         high: 90
  400.       histogram_icons:
  401.        - "\u2581" # 0%
  402.         - "\u2581" # 10%
  403.         - "\u2582" # 20%
  404.         - "\u2583" # 30%
  405.         - "\u2584" # 40%
  406.         - "\u2585" # 50%
  407.         - "\u2586" # 60%
  408.         - "\u2587" # 70%
  409.         - "\u2588" # 80%+
  410.       label_shadow:
  411.         enabled: true
  412.         color: "black"
  413.         radius: 3
  414.         offset: [ 1, 1 ]
Tags: dotfile
Advertisement
Add Comment
Please, Sign In to add comment