配置
Tsumiki 使用 TOML 进行配置。
快速入门示例
Section titled “快速入门示例”"$schema" = "./tsumiki.schema.json"
[general]debug = falseauto_restart = true
[layout]left_section = ["workspaces", "window_title"]middle_section = ["date_time"]right_section = ["volume", "battery", "system_tray"]
[modules.bar]layer = "top"location = "top"
[widgets.workspaces]count = 10hide_unoccupied = true
[widgets.volume]tooltip = truestep_size = 5
[widgets.battery]label = truetooltip = truegeneral
Section titled “general”全局行为,如调试模式、自动重启。
layout
Section titled “layout”控制组件在状态栏中的位置。
modules
Section titled “modules”启用和配置更大的 UI 模块。
widgets
Section titled “widgets”每个组件的设置(图标、标签、间隔)。
[[widget_groups]]widgets = ["updates", "battery"]spacing = 4style_classes = ["bordered"]
[[collapsible_groups]]widgets = ["ocr", "screenshot", "recorder"]spacing = 4icon = ""tooltip = "工具"Matugen 主题生成
Section titled “Matugen 主题生成”[matugen]enabled = truewallpaper = "~/Pictures/wallpaper.jpg"scheme = "scheme-tonal-spot"mode = "dark"