Stop new windows opening fullscreen while a video is fullscreen
Confirmed on this workstation that /usr/share/omarchy/default/hypr/looknfeel.lua:111 sets misc.on_focus_under_fullscreen = 1, and hyprctl getoption misc:on_focus_under_fullscreen (read-only) prints int: 1. The Hyprland config-options wiki page documents 0 ignore, 1 takes over, 2 unfullscreen, default 2. Issue #8751's maintainer-collaborator comment supports the cause, the deliberate choice in #2821, the ~/.config/hypr/looknfeel.lua override and the finding that fullscreen = false in a window rule does not help. Issue #13157 (4.0.4-1) supports the screensaver variant and the same workaround. Load order checked in /usr/share/omarchy/config/hypr/hyprland.lua: default.hypr.omarchy is required before hypr.looknfeel, so the user override wins. Not exercised: the override was not applied on this machine.
Symptom
While mpv or a browser video is fullscreen, opening a terminal with SUPER+Return brings the terminal up fullscreen too, and SUPER+F is needed to get it back. Related: after the screensaver appears, dismissing it with a trackpad click leaves the app underneath (Chrome, a terminal) fullscreen.
Cause
Omarchy sets misc.on_focus_under_fullscreen = 1 (take over) in /usr/share/omarchy/default/hypr/looknfeel.lua, deliberately, so an app launched over a fullscreen window comes to the front instead of hiding behind it. With 1, a window that gains focus on a workspace with a fullscreen window inherits the fullscreen state. The screensaver is a floating fullscreen window, so a click that moves focus to the window beneath hands fullscreen to that window. Hyprland's own default is 2 (exit fullscreen). Adding fullscreen = false to a window rule does not help, since an explicit false and no rule take the same path. Confirmed on_focus_under_fullscreen = 1 in 4.0.4-1.
Fix
**Omarchy 4.** Override it in ~/.config/hypr/looknfeel.lua, which loads after Omarchy's defaults:
hl.config({
misc = {
-- 2: the fullscreen window leaves fullscreen and the new one opens tiled
-- 0: the new window opens behind the fullscreen one, unfocused
on_focus_under_fullscreen = 2,
},
})
This applies to every app, not only terminals.
**Plain Arch.** You only see this if your config sets on_focus_under_fullscreen = 1. Remove it or set 2.
Verify
hyprctl getoption misc:on_focus_under_fullscreen reports 2 (or 0). Fullscreen a video, press SUPER+Return, and the terminal opens tiled.