Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

[FR] stayfocused window rule

Open 875d opened this issue 2 years ago • 3 comments
trafficstars

I request a window rule to force a window to stay focused.

A window subject to the rule will never lose focus, not even when the mouse is moved, until it is closed.

It would be useful for password managers, when they pop up asking for password: if you move the mouse, the password will end up on the underlying window....

875d avatar Jan 03 '23 20:01 875d

why did you add a "france" tag? (the [FR] thing)

vaxerski avatar Jan 03 '23 21:01 vaxerski

why did you add a "france" tag? (the [FR] thing)

c'est la vie

ghost avatar Jan 03 '23 21:01 ghost

This is so much needed.

Every kind of popup window has to overtake focus and keep it until it is closed.

Examples: App Launchers, "Refactor" popups in IDE's, Confirmation dialogs, etc.

This is a must have feature for streamlining user experience for all the people who aren't yet ready to fully adopt the terminal-based IDE's and interfaces.

UPD: It's actually achievable with some configuration (e.g. follow_mouse=0, float_switch_override_focus=0, focus_on_activate=true), but only if the app actually requests focus.

Popups in JetBrains IDE just do not request focus. It would be a really cool feature to force focus on a window whenever it appears.

Temporary and very hacky solution would be to just fullscreen these popups in order for them to hook input:

windowrulev2 = fullscreen,class:^jetbrains-

Also, this somehow works even better:


windowrulev2 = forceinput,class:^jetbrains-
windowrulev2 = windowdance,class:^jetbrains-

api-haus avatar Jan 17 '23 21:01 api-haus

@vaxerski any plans for this in the near future? The workaround suggested by api-haus to fullscreen a window just don't work well with app launchers e.g. rofi or other floating windows that popup to prompt.

rszyma avatar Jul 03 '23 14:07 rszyma

added in 18f9fb5e0fdb3fdc1aebe61b3c589bc23aed1e9f

heck off will ya

vaxerski avatar Jul 04 '23 10:07 vaxerski

@vaxerski I know this is closed, but thank you very much. :+1:

romanstingler avatar Jul 04 '23 17:07 romanstingler