omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Media-opacity exemption: match a plugin's player by its app id (`omarchy-iptv`)

Open rmcdavid opened this issue 1 month ago • 0 comments

What. default/hypr/apps/system.lua keeps media windows opaque by class:

-- No transparency on media windows.
o.window("^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$", { tag = "-default-opacity" })
o.window("^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$", { opacity = "1 1" })

The Omarchy IPTV plugin (io.github.rmcdavid.iptv, on the marketplace) plays through mpv launched with --wayland-app-id=omarchy-iptv, so its window carries the class omarchy-iptv rather than mpv -- the app id that gives the player its own window identity (so its rules and picture-in-picture handling never touch a user's other mpv windows) is the one that costs it the exemption. Measured on 4.0.4-1 / Hyprland 0.56.2 (hyprctl getprop ... opaque false, the window tagged default-opacity, rendered at 0.985 / 0.96): video plays slightly translucent.

What we tried, plugin-side, before asking (each against the live compositor, not reasoned about): hyprctl dispatch tagwindow and hyprctl setprop on the running window, a keyword rule at runtime, and the pip title route (Picture-in-Picture in the title floats and pins the window, which is wrong for a full player). A plugin cannot install a Hyprland rule, so today the user pastes one line from our contrib/windows.lua into looknfeel.lua. None of that fits a marketplace plugin.

The ask, either one:

  1. add omarchy-iptv to that class list (one token), or
  2. a documented way for a plugin to ship a window rule, which the marketplace could then validate.

(1) is the smaller change and we would prefer it; happy to send the one-line patch if you want it that way.

rmcdavid avatar Oct 24 '26 22:10 rmcdavid