Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@
for monitor in monitors:
monitor_id = monitor['id']

# Create corners only for the first monitor (shared across all)
if monitor_id == 0:
corners = Corners()
# Set corners visibility based on config
corners_visible = config.get("corners_visible", True)
corners.set_visible(corners_visible)
app_components.append(corners)
# Create corners for this monitor
corners = Corners(monitor_id=monitor_id)
# Set corners visibility based on config
corners_visible = config.get("corners_visible", True)
corners.set_visible(corners_visible)
app_components.append(corners)

# Create monitor-specific components
if multi_monitor_enabled:
Expand Down Expand Up @@ -129,7 +128,7 @@
'bar': bar,
'notch': notch,
'dock': dock,
'corners': corners if monitor_id == 0 else None
'corners': corners
})

# Add components to app list
Expand Down
3 changes: 2 additions & 1 deletion modules/corners.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, corner):


class Corners(Window):
def __init__(self):
def __init__(self, monitor_id: int = 0):
super().__init__(
name="corners",
layer="bottom",
Expand All @@ -32,6 +32,7 @@ def __init__(self):
# pass_through=True,
visible=False,
all_visible=False,
monitor=monitor_id,
)

self.all_corners = Box(
Expand Down