- New spawn_settings action + '≡ Inställningar' button in the default panel (≡ instead of ⚙ which has ambiguous character width): opens a singleton settings window - Rows: theme (cycles built-in + themes/*.toml), panel (cycles panels/*.toml), shadow and scrollbar toggles — keyboard (arrows/ Enter/Esc) and mouse (click selects, click again activates) - Shows where config.toml, themes/ and panels/ live - Changes apply immediately and persist to config.toml via toml_edit; the hot-reload watcher picks up the file writes for panels - README and --help updated with switcher/snap/copy-mode/theme docs - Integration suite: 30/30 (gear click, dialog opens, shadow toggle persisted to config.toml) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
35 lines
846 B
TOML
35 lines
846 B
TOML
# Knappar i panelen
|
||
[[item]]
|
||
label = "Terminal"
|
||
action = { type = "spawn_terminal" }
|
||
|
||
[[item]]
|
||
label = "mouse-test"
|
||
action = { type = "run_program", command = "testapps/mouse-test/target/release/mouse-test" }
|
||
|
||
# Inbyggda inställningar (tema/panel/skugga/scrollbar).
|
||
# ≡ används i stället för ⚙ eftersom kugghjuls-emojin har tvetydig
|
||
# teckenbredd och förskjuter panelraden i vissa terminaler.
|
||
[[item]]
|
||
label = "≡ Inställningar"
|
||
action = { type = "spawn_settings" }
|
||
|
||
[[item]]
|
||
label = "Exit"
|
||
action = { type = "exit" }
|
||
|
||
# Status-widgets
|
||
# Klocka – körs varje sekund, 10 tecken bred, dockad mot höger
|
||
[[status]]
|
||
command = "date '+%H:%M:%S'"
|
||
interval = 1
|
||
width = 10
|
||
align = "right"
|
||
|
||
# Datum – uppdateras varje minut, 12 tecken bred, dockad mot höger
|
||
[[status]]
|
||
command = "date '+%Y-%m-%d'"
|
||
interval = 60
|
||
width = 12
|
||
align = "right"
|