github:
type: "yasb.github.GithubWidget"options:
label: "<span>\ueba1</span>"label_alt: "Notifications {data}"# {data} return number of unread notificationtoken: ghp_xxxxxxxxxxx # GitHub Personal access tokens (classic) https://github.com/settings/tokensmax_notification: 20# Max number of notification displaying in menu max: 50notification_dot:
enabled: Truecorner: "bottom_left"# Can be "top_left", "top_right", "bottom_left", "bottom_right"color: "red"# Can be hex color or stringmargin: [ 1, 1 ] # x and y margin for the dotonly_unread: false # Show only unread or all notifications; max_field_size: 54# Max characters in title before truncation.update_interval: 300# Check for new notification in secondsmenu:
blur: True # Enable blur effect for the menuround_corners: True # Enable round corners for the menu (this option is not supported on Windows 10)round_corners_type: "normal"# Set the type of round corners for the menu (normal, small) (this option is not supported on Windows 10)border_color: "System"# Set the border color for the menu (this option is not supported on Windows 10)alignment: "right"direction: "down"label_shadow:
enabled: Truecolor: "black"radius: 3offset: [ 1, 1 ]
Description of Options
label: The format string for the label. You can use placeholders like {icon} to dynamically insert icon information.
label_alt: The alternative format string for the label. Useful for displaying additional notification details.
tooltip: Whether to show the tooltip on hover.
update_interval: The interval in seconds to update the notifications. Must be between 60 and 3600.
token: The GitHub personal access token. GitHub Personal access tokens (classic) https://github.com/settings/tokens you can set token: env, this means you have to set YASB_GITHUB_TOKEN in environment variable.
max_notification: The maximum number of notifications to display in the menu, max 50.
notification_dot: A dictionary specifying the notification dot settings for the widget. This will show a dot on the icon (enclosed with the tag).
enabled: Enable notification dot.
corner: Set the corner where the dot should appear.
color: Set the color of the notification dot. Can be hex or string color.
margin: Set the x, y margin for the notification dot.
only_unread: Whether to show only unread notifications.
max_field_size: The maximum number of characters in the title before truncation.
menu: A dictionary specifying the menu settings for the widget. It contains the following keys:
blur: Enable blur effect for the menu.
round_corners: Enable round corners for the menu (this option is not supported on Windows 10).
round_corners_type: Set the type of round corners for the menu (normal, small) (this option is not supported on Windows 10).
border_color: Set the border color for the menu (this option is not supported on Windows 10).
alignment: Set the alignment of the menu (left, right).
direction: Set the direction of the menu (up, down).
offset_top: Set the offset from the top of the screen.
offset_left: Set the offset from the left of the screen.
animation: A dictionary specifying the animation settings for the widget. It contains three keys: enabled, type, and duration. The type can be fadeInOut and the duration is the animation duration in milliseconds.
container_padding: Explicitly set padding inside widget container. Use this option to set padding inside the widget container. You can set padding for top, left, bottom and right sides of the widget container.