disk:
type: "yasb.disk.DiskWidget"options:
label: "{volume_label} {space[used][percent]}"label_alt: "{volume_label} {space[used][gb]} / {space[total][gb]}"volume_label: "C"update_interval: 60group_label:
volume_labels: ["C", "D", "E", "F"]show_label_name: trueblur: Trueround_corners: Trueround_corners_type: "small"border_color: "System"alignment: "right"direction: "down"callbacks:
on_left: "toggle_group"on_middle: "toggle_label"on_right: "exec explorer C:\\"# Open disk C in file explorerlabel_shadow:
enabled: truecolor: "black"radius: 3offset: [ 1, 1 ]
Description of Options
label: The format string for the disk widget. Displays free space in percent.
label_alt: The alternative format string for the disk widget.
volume_label: Partition/volume which you want to show in the bar.
decimal_display: The number of decimal to show, defaul 1 (min 0 max 3).
update_interval: The interval in seconds to update the disk widget. Must be between 0 and 3600.
group_label: Group labels for multiple disks. This will show the labels of multiple disks in a popup window.
volume_labels: List of volume labels to show in the group label.
show_label_name: Show the label name in the group label.
blur: Enable blur effect for the group label.
round_corners: Enable round corners for group label.
round_corners_type: Border type for group label can be normal and small. Default is normal.
border_color: Border color for group label can be None, System or Hex Color"#ff0000".
alignment: Alignment of the group label. Possible values are left, center, and right.
direction: Direction of the group label. Possible values are up and down.
offset_top: Offset from the top of the screen.
offset_left: Offset from the left of the screen.
callbacks: A dictionary specifying the callbacks for mouse events. The keys are on_left, on_middle, and on_right, and the values are the names of the callback functions.
container_padding: Explicitly set padding inside widget container.
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.