Skip to content

Add a title to the Popup Window - #7

Open
davidlazch wants to merge 1 commit into
steam3d:masterfrom
davidlazch:david/add-title-for-popup
Open

davidlazch wants to merge 1 commit into
steam3d:masterfrom
davidlazch:david/add-title-for-popup

Conversation

@davidlazch

@davidlazch davidlazch commented Nov 10, 2026 •

Copy link
Copy Markdown

Adds a title to the AirPods popup window.
Useful for targeting only the popup in specific environments (e.g Hyprland), based on the Window Title.

Tested locally, on Arch with Hyprland 0.56.2, built with the latest version of master.

Please validate behavior on another DE.


Hyprland Window Rule (if you would like to test it yourself)

hl.on("window.open_early", function(w)
    if w.initial_title ~= "MagicPods PopUp — MagicPods" then return end

    hl.dispatch(hl.dsp.window.move({
        window = w,
        workspace = hl.get_active_workspace(),
        follow = false
    }))
end)

hl.window_rule({
    match = { title = "MagicPods PopUp — MagicPods" },

    float = true,
    move = { "(monitor_w * 0.5) - (window_w / 2)", "(monitor_h * 0.85) - (window_h / 2)" },
    pin = true,
    rounding = 14,
    size = { "window_w", "window_h" }
})
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant