peterfajdiga / karousel

Scrollable tiling Kwin script
GNU General Public License v3.0
286 stars 5 forks source link

Window rules have no effect #24

Closed arielchuri closed 11 months ago

arielchuri commented 11 months ago

Love this work. The Window Rules to ignore certain windows does not work for me (endeavorOS). TY.

peterfajdiga commented 11 months ago

Hi, thanks!

Can you share your Window Rules JSON? Are you using X11 or Wayland?

arielchuri commented 11 months ago

I am on Wayland via endeavorOS. I think it is just the default JSON: [ { "class": "ksmserver-logout-greeter", "tile": false }, { "class": "kcalc", "tile": false }, { "class": "kfind", "tile": true }, { "class": "kruler", "tile": false }, { "class": "yakuake", "tile": false }, { "class": "yakuake", "tile": false }, { "class": "krunner", "tile": false }, { "class": "zoom", "caption": "Zoom Cloud Meetings", "tile": false }, { "class": "zoom", "caption": "zoom", "tile": false }, { "class": "jetbrains-idea", "caption": "splash", "tile": false }, { "class": "jetbrains-studio", "caption": "splash", "tile": false }, { "class": "jetbrains-idea", "caption": "Unstash Changes|Paths Affected by stash@.", "tile": true }, { "class": "jetbrains-studio", "caption": "Unstash Changes|Paths Affected by stash@.", "tile": true } ]

peterfajdiga commented 11 months ago

Thanks for the info. I don't use Wayland, but it's possible that window class names are different there.

peterfajdiga commented 11 months ago

I've checked today and they are indeed different for some programs. I've updated the JSON here with the Wayland class names:

[
    {
        "class": "ksmserver-logout-greeter",
        "tile": false
    },
    {
        "class": "org.kde.kcalc",
        "tile": false
    },
    {
        "class": "org.kde.kfind",
        "tile": true
    },
    {
        "class": "org.kde.kruler",
        "tile": false
    },
    {
        "class": "org.kde.krunner",
        "tile": false
    },
    {
        "class": "zoom",
        "caption": "Zoom Cloud Meetings",
        "tile": false
    },
    {
        "class": "zoom",
        "caption": "zoom",
        "tile": false
    },
    {
        "class": "jetbrains-idea",
        "caption": "splash",
        "tile": false
    },
    {
        "class": "jetbrains-studio",
        "caption": "splash",
        "tile": false
    },
    {
        "class": "jetbrains-idea",
        "caption": "Unstash Changes|Paths Affected by stash@.*",
        "tile": true
    },
    {
        "class": "jetbrains-studio",
        "caption": "Unstash Changes|Paths Affected by stash@.*",
        "tile": true
    }
]

Can you try if it works with this JSON?

arielchuri commented 11 months ago

That works. I added: org.kde.yakuake. ty.

peterfajdiga commented 11 months ago

I've added Wayland class names to the default window rules.