Hyprland
Hyprland copied to clipboard
Hold window and switch workspace
Hold window from workspace and switch workspace, and then be able to drop it down to a new workspace, along with an animation.
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?
bind=SUPER,P,togglefloating bind=SUPER,P,pinThis 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.
can't you do that by just adapting the mouse bindings according to my example?
bind=SUPER,P,togglefloating bind=SUPER,P,pinThis 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
Is this issue still relevant? Doesn't movetoworkspace do the same thing, essentially?
@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
tested a bit more, any keypress disrupts the movewindow, resizewindow too, if mouse used.