kupiqu / plasma-active-application

KDE plasma applet to show the active application name. Thought to be used in a panel together with plasma's global menu.
5 stars 2 forks source link

Application name replacements #1

Open kupiqu opened 5 years ago

kupiqu commented 5 years ago

Note as of 2018/11/08: Window titles have been replaced by proper application names (64d7250 see issue #5), which means that your replacements (version 0.1) will likely need an adjustment (if using the master version or the upcoming version 0.2, when released).

These are the application name replacements I find useful to have:

"LibreOffice ", "";
".* Firefox", "Firefox";
".* Chromium", "Chromium";
"Google ", "";
" Player", "";
"Gimp.*", "Gimp";
"MATLAB", "Matlab";

Feel free to add yours.

trmdi commented 5 years ago

"GNU Image Manipulation Program", "Gimp"

trmdi commented 5 years ago

Is there any way to make the search string language-independent? E.g: use the process name as the search string?

And you should use a table instead of just a simple textbox. That would look much better.

Another idea is, users could quickly add a replacement for the current window name by right clicking on the applet > Rename...

kupiqu commented 5 years ago

Is there any way to make the search string language-independent? E.g: use the process name as the search string?

The way it works now is by deriving application names from window titles (see issue #4 for a brief explanation of that decision). This may change because some applications do not inform at all about the application name in the window title. Once window titles are replaced by truly application names, then I think it will be language-independent.

And you should use a table instead of just a simple textbox. That would look much better.

Sounds like a good idea. If only I knew how... ;)

Another idea is, users could quickly add a replacement for the current window name by right clicking on the applet > Rename...

Another good idea.

kupiqu commented 5 years ago

Btw, could you please open specific issues for these two ideas?

Chromace commented 5 years ago
"Pidgin Internet Messenger", "Pidgin"
"Telegram Desktop", "Telegram"
"QBittorrent", "qBittorrent"
kupiqu commented 5 years ago

Window titles have been replaced by proper application names (64d725045ce924542d6b2641512e2dd44645e94f see issue #5), which means that these replacements will likely need an adjustment (if using the master version or the upcoming release).

kupiqu commented 5 years ago

"QBittorrent", "qBittorrent"

This shouldn't be needed anymore