outfoxxed/hy3

Feature: Recalculate the geometry of the scratchpad when moving across monitors

Opened this issue · 0 comments

Heya!

I have three monitors, one vertical and two horizontal (or landscape). When I launch my special workspace, I do it like this:

# ─[ Kitty on the scratchpad ]────────────────────────────────────────────
windowrulev2 = float, class:(kitty), title:(kitty_scratchpad)
windowrulev2 = workspace special silent,class:(kitty), title:(kitty_scratchpad)
windowrulev2 = center 1, class:(kitty), title:(kitty_scratchpad)
windowrulev2 = size 80% 80%, class:(kitty), title:(kitty_scratchpad)

This works for the two landscape monitors, but will not work for my horizontal one. When I try to bring the special workspace on in one of the two landscape monitors, it appears centered and 80% of both width and height. On the horizontal one, it bleeds to the monitor next to it.

Is there a way to recalculate the placement and size of the floating window?