Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Hold window and switch workspace

Open digitalwtf opened this issue 2 years ago • 4 comments

Hold window from workspace and switch workspace, and then be able to drop it down to a new workspace, along with an animation.

digitalwtf avatar Nov 10 '22 02:11 digitalwtf

bind=SUPER,P,togglefloating
bind=SUPER,P,pin

This will alow you to make a window floating and pin it at the same time. Then you can switch to any workspace (observe how the window stays in its place) finally it animates back into the tiling.

@vaxerski one small ux-issue though. Can we haz a setting for make pinned window stay focused when switching workspaces?

ad-on-is avatar Nov 11 '22 13:11 ad-on-is

bind=SUPER,P,togglefloating
bind=SUPER,P,pin

This will alow you to make a window floating and pin it at the same time. Then you can switch to any workspace (observe how the window stays in its place) finally it animates back into the tiling.

@vaxerski one small ux-issue though. Can we haz a setting for make pinned window stay focused when switching workspaces?

Maybe i missspoke, but i ment holding the window with the mouse and when you switch workspaces while doing this, you can have the window in your grasp and also be able to drop it into a new workspace.

ghost avatar Nov 11 '22 14:11 ghost

can't you do that by just adapting the mouse bindings according to my example?

ad-on-is avatar Nov 11 '22 17:11 ad-on-is

bind=SUPER,P,togglefloating
bind=SUPER,P,pin

This will alow you to make a window floating and pin it at the same time. Then you can switch to any workspace (observe how the window stays in its place) finally it animates back into the tiling. @vaxerski one small ux-issue though. Can we haz a setting for make pinned window stay focused when switching workspaces?

Maybe i missspoke, but i ment holding the window with the mouse and when you switch workspaces while doing this, you can have the window in your grasp and also be able to drop it into a new workspace.

Well I can do this normally with my bindings...

I use this to grab/move the window: bindm = SUPER, mouse:272, movewindow

I use this to change workspaces: bind = SUPER, mouse_up, workspace, e+1 bind = SUPER, mouse_down, workspace, e-1

If I hold super and grab a window then scroll the mouse while, it carries the window together just fine But it won't work if I directly change to a workspace with eg: bind = SUPER, 1(...9), workspace, 1(...9) Only using the e+1/e-1 switches

BionicKnight avatar Nov 12 '22 02:11 BionicKnight

Is this issue still relevant? Doesn't movetoworkspace do the same thing, essentially?

fufexan avatar Dec 29 '23 12:12 fufexan

@fufexan It gets the same thing done in a different way yeah.

Interesting enough in my config it works if I use the mousewheel to switch workspaces, period and comma doesn't allow me to keep dragging the window:

bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
bind = $mainMod, period, workspace, e+1
bind = $mainMod, comma, workspace, e-1

bindm = $mainMod, mouse:272, movewindow

myryk31415 avatar Apr 16 '24 19:04 myryk31415

tested a bit more, any keypress disrupts the movewindow, resizewindow too, if mouse used.

myryk31415 avatar Apr 16 '24 19:04 myryk31415