Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Add setfloating command

Open Kasper24 opened this issue 2 years ago • 0 comments

Describe your PR, what does it fix/add?

This adds a new dispatcher - setfloating. The another dispatcher togglefloating like it's name suggests only toggles the floating state, but what if a user only wants to set it to a specific state? an example use case could that we want to float a window when dragging it, but it doesn't make much sense to unfloat when dragging if it's already floated. Example bind:

  bind = $mainMod, mouse:272, setfloating, 1

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

It's my first time here, so I obviously don't have much experience with Hyprland so I'm hoping I did not fuck things up.

Kasper24 avatar Jul 31 '23 00:07 Kasper24