diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 17:48:58 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 17:48:58 +1000 |
| commit | f541e99d076cd87a5947200ff0f7a0065329a30a (patch) | |
| tree | a4020c2f65a32ae978863b601d073dd9667b1f61 /src | |
| parent | readme: add config section (diff) | |
| download | caelestia-cli-f541e99d076cd87a5947200ff0f7a0065329a30a.tar.gz caelestia-cli-f541e99d076cd87a5947200ff0f7a0065329a30a.tar.bz2 caelestia-cli-f541e99d076cd87a5947200ff0f7a0065329a30a.zip | |
pip: add monitor offset
Fixes #30 (hopefully)
Diffstat (limited to 'src')
| -rw-r--r-- | src/caelestia/subcommands/pip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caelestia/subcommands/pip.py b/src/caelestia/subcommands/pip.py index 5f1b5fa..4ee50b4 100644 --- a/src/caelestia/subcommands/pip.py +++ b/src/caelestia/subcommands/pip.py @@ -27,7 +27,7 @@ class Command: scale_factor = mon["height"] / 4 / height scaled_win_size = f"{int(width * scale_factor)} {int(height * scale_factor)}" off = min(mon["width"], mon["height"]) * 0.03 - move_to = f"{int(mon['width'] - off - width * scale_factor)} {int(mon['height'] - off - height * scale_factor)}" + 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}") |