hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.51k stars 773 forks source link

Toggle focus between tiled and floating dispatcher #5351

Open aacebedo opened 3 months ago

aacebedo commented 3 months ago

Description

When having a both tiled and floating windows, it seems impossible to switch between the tiled and floating ones without using the mouse.

Would it be possible to add a dispatcher to focus the floating windows ?

MightyPlaza commented 3 months ago

hyprctl dispatch focuswindow floating/tiled

but a smarter way to change between them should still be implemented

aacebedo commented 3 months ago

That's a good starting point yes but it is not a toggle. having it without a script would be great

MightyPlaza commented 3 months ago

hyprctl dispatch focuswindow $(if [[ $(hyprctl activewindow -j | jq ."floating") == "true" ]]; then echo "tiled"; else echo "floating"; fi;)

aacebedo commented 3 months ago

Thanks. I'll use it. Still it is strange to have the togglefloating dispatcher but not the equivalent for focus.