hy3 icon indicating copy to clipboard operation
hy3 copied to clipboard

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

Open smitropoulos opened this issue 1 year ago • 0 comments
trafficstars

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?

smitropoulos avatar Jan 23 '24 18:01 smitropoulos