Hyprland
Hyprland copied to clipboard
[FR] stayfocused window rule
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....
why did you add a "france" tag? (the [FR] thing)
why did you add a "france" tag? (the [FR] thing)
c'est la vie
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-
@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.
added in 18f9fb5e0fdb3fdc1aebe61b3c589bc23aed1e9f
heck off will ya
@vaxerski I know this is closed, but thank you very much. :+1: