From 8993a6214963f0e38364a6b131dcf3942fccc747 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Mon, 23 Oct 2023 15:24:43 +0200 Subject: [PATCH] monitors: add relayout command --- pyprland/plugins/monitors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyprland/plugins/monitors.py b/pyprland/plugins/monitors.py index d40b753..18556ed 100644 --- a/pyprland/plugins/monitors.py +++ b/pyprland/plugins/monitors.py @@ -40,6 +40,9 @@ def configure_monitors(monitors, screenid: str, pos_x: int, pos_y: int) -> None: class Extension(Plugin): # pylint: disable=missing-class-docstring async def load_config(self, config) -> None: await super().load_config(config) + await self.run_relayout() + + async def run_relayout(self): monitors = cast(list[dict], await hyprctlJSON("monitors")) for monitor in monitors: await self.event_monitoradded(