#How to set precedence for a window with conflicting forced float/manage rules

1 messages · Page 1 of 1 (latest)

upbeat steeple
#

In my komorebi.json, I have a field inside "floating_applications" to match any window with the classname SDL_app, and in "manage_rules" I have any Exe matching steamwebhelper.exe, however steam matches both of these, how can I tell steam to ignore the floating rule and be managed instead?

topaz wyvern
#

You probably need a composite rule to match on more than just one rule

upbeat steeple
#

what would that look like? didnt realise you could do composite rules

topaz wyvern
#

I set steam as a floating app like this

  "floating_applications": [
    {
      "kind": "Exe",
      "id": "steam",
      "matching_strategy": "Contains"
    }
  ],

A composite rule would look like this

    [
      {
        "kind": "Exe",
        "id":"Ssms.exe",
        "matching_strategy": "Equals"
      },
      {
        "kind": "Class",
        "id":"WindowsForms10.Window.8.app.0.3f6704d_r20_ad1",
        "matching_strategy": "Equals"
      },
    ]
upbeat steeple
#

oh i thought you meant composite as in something that could let me say:

"Set all windows of class SDL_app to float, except those with a process steamwebhelper.exe"

#

thats what i really need

topaz wyvern
#

I do not think that is possible, but you should be a ble to set a manage rule for steam, might need to make it composite to have higher priority. not sure

#

oh, but you have "DoesNotEqual" and "DoesNotContain"

#

so you can make it like this

    [
      {
        "kind": "Class",
        "id":"SDL_app",
        "matching_strategy": "Equals"
      },
      {
        "kind": "Exe",
        "id":"steamwebhelper.exe",
        "matching_strategy": "DoesNotEqual"
      },
    ]
#

@upbeat steeple this should work, no?

upbeat steeple
#
"manage_rules": [
    {
      "kind": "Exe",
      "id": "steamwebhelper.exe",
      "matching_strategy": "Equals"
    }
  ],
  "floating_applications": [
    [
      {
        "kind": "Class",
        "id": "SDL_app",
        "matching_strategy": "Equals"
      },
      {
        "kind": "Exe",
        "id": "steamwebhelper.exe",
        "matching_strategy": "DoesNotEqual"
      }
    ]
  ]

I also needed to add it in the manage rules on top of that but yes that worked :D