antroids / application-title-bar

KDE Plasma6 widget with window controls
GNU General Public License v3.0
60 stars 4 forks source link

Substitution rules for changing displayed name #44

Open Covkie opened 1 month ago

Covkie commented 1 month ago

ex: "Spotify Free" -> "Spotify"

an example of this implemented is https://github.com/dhruv8sh/plasma6-window-title-applet

antroids commented 1 month ago

Thank you for the report! Could you check the version 0.6.5. It's not released to the Store yet.

Covkie commented 1 month ago

Works great! perhaps certain rules could be limited to certain applications by the window's class like with plasma window rules?

antroids commented 1 month ago

I think it will be better to use RegExp there. The Class is X11 field, which can be obtained via kwindowsystem module, but I don't want to add a hard dependency to it.

Covkie commented 1 month ago

Only works after boot once you click "Apply" on latest release

antroids commented 1 month ago

Only works after boot once you click "Apply" on latest release

Should be fixed in 0.6.8, uploaded to the Store.

Covkie commented 1 month ago

Substitution rules aren't applying to the hovered title image

antroids commented 1 month ago

The tooltip does not depend on the Title options: it is always genericAppName field from the model. I would leave it unchanged, you can see a short name in the Title, and full unchanged in the Tooltip. What do you think?

Covkie commented 4 weeks ago

hm I guess thats alright, I can live with it.