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
21.97k stars 913 forks source link

Option to maintain window position when self-resizing #6779

Closed DaeTheDerg closed 5 months ago

DaeTheDerg commented 5 months ago

Description

hiya! I've been spending a couple of hours searching for a way to make a window that resizes itself grow/shrink from a particular point, e.g. the top left corner -

in my situation, I want my launcher menu - for example Albert or Ulauncher - to stay in the top left corner of my screen -- I can do that by setting a window rule of move 0 0 but then when I start typing in the window, and it resizes to show the results, it always expands from the centre, not the top left corner as I would like, meaning that the contents of the window expand off the screen

Is there any way of preventing this? it'd be super useful if there were some way of anchoring the resizing of a window to the sides and/or corners rather than the default behaviour where it expands from the centre in all directions, but I haven't been able to find anything about this on the wiki or elsewhere

Thanks!

vaxerski commented 5 months ago

this is not a usecase I want to support. App launchers should not be windows and instead use layer_shell, just like anyrun, wofi, fuzzel, krunner, or 100 other launchers that can behave.

DaeTheDerg commented 5 months ago

Thanks for the recommendations!