summaryrefslogtreecommitdiff
path: root/src/caelestia/subcommands/pip.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/caelestia/subcommands/pip.py')
-rw-r--r--src/caelestia/subcommands/pip.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/caelestia/subcommands/pip.py b/src/caelestia/subcommands/pip.py
index 4ee50b4..6f4727d 100644
--- a/src/caelestia/subcommands/pip.py
+++ b/src/caelestia/subcommands/pip.py
@@ -29,8 +29,10 @@ class Command:
off = min(mon["width"], mon["height"]) * 0.03
move_to = f"{int(mon['x']) + int(mon['width'] - off - width * scale_factor)} {int(mon['y']) + int(mon['height'] - off - height * scale_factor)}"
- hypr.dispatch("resizewindowpixel", "exact", f"{scaled_win_size},address:{address}")
- hypr.dispatch("movewindowpixel", "exact", f"{move_to},address:{address}")
+ hypr.batch(
+ f"dispatch resizewindowpixel exact {scaled_win_size},address:{address}",
+ f"dispatch movewindowpixel exact {move_to},address:{address}",
+ )
def daemon(self) -> None:
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock: