refactor(config): reorganize config.toml into sections

- Move all settings into [general], [dock], [panel], [switcher], [notification]
- Remove [desktop_widgets] section, move items to panel/general
- Add dot notation support to config service for nested keys
- Update all config references across codebase
This commit is contained in:
sankalp committed 2026-07-28 13:34:23 +05:45
1 parent 1d66b57ad7
commit f4689b8076
17 files changed
+204 -148

No files matched your search

+42 -32
View File
@@ -1,34 +1,44 @@
DEFAULT = {
"debug": False,
"dock_enabled": True,
"dock_auto_hide": True,
"dock_always_occluded": False,
"dock_icon_size": 52,
"hide_special_workspace": True,
"dock_hide_special_workspace_apps": True,
"notification_timeout": "5s",
"notification_ignored_apps": ["Hyprshot"],
"notification_limited_apps_history": ["Spotify"],
"imac_button": True,
"systray": True,
"control_center": True,
"search": True,
"global_menu": True,
"network": True,
"battery": True,
"notification_center": True,
"workspace_indicator": True,
"bluetooth": True,
"date_time": True,
"night_light_temperature": 4500,
"notch": True,
"custom_mods": True,
"keyboard_layouts": ["us"],
"switcher_live_preview": True,
"switcher_live_preview_delay_ms": 200,
"systray_ignore": ["blueman", "network"],
"wallpapers_dir": "src/assets/wallpaper_example/",
"osd": True,
"window_switcher": True,
"weather_location": "",
"general": {
"debug": False,
"wallpapers_dir": "src/assets/wallpaper_example/",
"keyboard_layouts": ["us"],
"weather_location": "",
},
"dock": {
"enabled": True,
"auto_hide": True,
"always_occluded": False,
"icon_size": 52,
"hide_special_workspace_apps": True,
},
"panel": {
"imac_button": True,
"systray": True,
"systray_ignore": ["blueman", "network"],
"control_center": True,
"search": True,
"global_menu": True,
"network": True,
"battery": True,
"notification_center": True,
"workspace_indicator": True,
"bluetooth": True,
"date_time": True,
"night_light_temperature": 4500,
"notch": True,
"osd": True,
"hide_special_workspace": True,
"custom_mods": True,
},
"switcher": {
"live_preview": True,
"live_preview_delay_ms": 200,
"window_switcher": True,
},
"notification": {
"timeout": "5s",
"ignored_apps": ["Hyprshot"],
"limited_apps_history": ["Spotify"],
},
}