Skip to content

All Steam windows open as floating #1615

Description

@ArijanJ

Compositor

  • Niri
  • Hyprland
  • MangoWC (dwl)
  • Sway

Distribution

  • Arch Linux
  • CachyOS
  • Fedora
  • NixOS
  • Debian
  • Ubuntu
  • Gentoo
  • OpenSUSE
  • Other (specify below)

If Other, please specify

No response

dms doctor -v

n/a

Description

According to niri wiki, Steam notifications should be matched like this (with added ^ and $ in the regex to match the other ones we have):

match app-id=r#"^steam$"# title=r#"^notificationtoasts_\d+_desktop$"#

Currently, they are handled like this for niri and hyprland:

core/internal/config/embedded/hyprland.conf
101:windowrule = float on, match:class ^(steam)$

core/internal/config/embedded/niri.kdl
231:    match app-id=r#"^steam$"#

This leads to all Steam windows, even the main one, opening as floating, which is a little confusing.

This is what I personally had before switching to DMS and I found it worked well:

window-rule {
    match app-id="steam" title=r#"^notificationtoasts_\d+_desktop$"#
    default-floating-position x=10 y=10 relative-to="bottom-right"
    open-focused false
}

For hyprland, it seems a lot of users have these lines in their configs, but I haven't tested them:

windowrulev2=noinitialfocus, title:(^notificationtoasts.*)
windowrulev2 = pin,class:^(steam),title:^(notificationtoasts)(.*)

Expected Behavior

No response

Steps to Reproduce & Installation Method

open steam, and it opens as floating - it has no reason to open floating by default unless it's a notification

Error Messages/Logs

No response

Screenshots/Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions