feat(panel): add notch toggle to config.toml

Matches existing pattern for global_menu, systray, etc.
Set notch = false to hide center notch from panel.
This commit is contained in:
sankalp committed 2026-07-26 13:48:34 +05:45
1 parent e52ff7c04f
commit 7917eea54b
3 files changed
+10 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ DEFAULT = {
"bluetooth": True,
"date_time": True,
"night_light_temperature": 4500,
"notch": True,
"custom_mods": True,
"keyboard_layouts": ["us"],
"switcher_live_preview": True,
+8 -1
View File
@@ -140,7 +140,7 @@ class Panel(Window):
# Create boxes and mount
self.left_box = Box(name="window-left")
self.notch = Notch()
self.center_box = Box(name="window-center", children=self.notch)
self.center_box = Box(name="window-center")
self.right_box = Box(name="window-right", spacing=4, orientation="h")
self.children = CenterBox(
@@ -271,6 +271,12 @@ class Panel(Window):
if bluetooth_visible:
self.bluetooth_indicator.update_state()
# Center (notch)
if config_data.get("notch", True):
self.center_box.children = [self.notch]
else:
self.center_box.children = []
# Left
left_children = []
if config_data.get("imac_button", True):
@@ -319,6 +325,7 @@ class Panel(Window):
keys = {
"imac_button",
"global_menu",
"notch",
"custom_mods",
"workspace_indicator",
"systray",