- Introduced a new `Config` struct for loading application configuration from a TOML file. - Added support for keybindings and panel configurations, including status widgets. - Implemented `PtyTerminal` for handling pseudo-terminal interactions. - Created a rendering module to manage the display of application windows, panels, and dropdowns. - Refactored the main application loop to utilize the new configuration and rendering logic. - Removed legacy code related to event handling and rendering from `main.rs`.
24 lines
454 B
TOML
24 lines
454 B
TOML
# Knappar i panelen
|
||
[[item]]
|
||
label = "Terminal"
|
||
action = { type = "spawn_terminal" }
|
||
|
||
[[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"
|