migrate scratch to active monitor

This commit is contained in:
fdev31 2023-04-28 12:36:37 +02:00
parent abb1e71898
commit d4bf8480e2

View file

@ -291,7 +291,9 @@ class Extension(Plugin):
animation_type = item.conf.get("animation", "").lower() animation_type = item.conf.get("animation", "").lower()
wrkspc = monitor["activeWorkspace"]["id"] wrkspc = monitor["activeWorkspace"]["id"]
self.transitioning_scratches.add(uid) self.transitioning_scratches.add(uid)
await hyprctl(f"moveworkspacetomonitor special:scratch {monitor['name']}")
await hyprctl(f"movetoworkspacesilent {wrkspc},{pid}") await hyprctl(f"movetoworkspacesilent {wrkspc},{pid}")
if animation_type: if animation_type:
margin = item.conf.get("margin", DEFAULT_MARGIN) margin = item.conf.get("margin", DEFAULT_MARGIN)