Application Name Plasmoid
KDE4 Extensions
Score 67%
Description:

A QML plasmoid which shows the application name of the focused window.

Features:
* Shows the application name of the focused windows
* Shows the activity name if no window is focused
* Optionally, it shows the window title (enable this option in the settings)
* Optionally, it shows the application icon (enable this option in the settings)
* A fixed width can be set through the settings dialog
* Font style (bold/italic/underline), family and color are customizable too
* A tooltip shows current application name and windows title
Last changelog:

3 years ago

2.0
* Add a tooltip which dispays current application name and window title
* Add the option to set the maximum width for the plasmoid
* Add an option which allows to display the activity name everytime or to completely disable this feature (Issue #4).

1.9
* Fix cmake install dir
* Add the option to set the font family through the settings dialog

1.8
* Fix the Bold setting not restored (Issue #2)
* Fix the plasmoid height in the panel
* Fix the text vertical alignment not centered
* Add the Underline text setting
* Drop the Frame element

1.7
* Added an option in the settings to show the application icon

1.6
* Fix regression. Center the text ever.

1.5
* Added an option in the settings to set the font style (bold or italic)
* Added an option in the settings to set the font color
* Added an option in the settings to set the plasmoid effect (Plain, Raised, Sunken)
* Set a minimum value for the fixed width

1.4
* Add an option in the settings panel to set a fixed width
* Downgrade KDE required version to 4.8

1.3
* Add an option in the settings panel to show the full window title

1.2
* Renamed as Application Name Plasmoid

1.1
* Show the name of the activity if there's no window focused

1.0
* First release

ilpianista

4 years ago

About the label with bold text:
open main.qml,
at line 89, replace "Sunken" by "Plain".
Then, add 'font { bold: true }' line after "text:visibleText" (line 97)

Maybe I'll add the common font customization in the Settings dialog.

Report

lgsalvati

4 years ago

Good idea.
Anyway font does not appear bold,here the code:

PlasmaComponents.Label {
id: text
text: visibleText
font { bold: true }
anchors.verticalCenter: frame.verticalCenter
anchors.horizontalCenter: frame.horizontalCenter

}

Report

Chamkal

4 years ago

For 'PlasmaComponents.Label' components it's 'font.weight: Font.Bold'. This works for me:

PlasmaComponents.Label {
id: text
text: visibleText
font.weight: Font.Bold
,,,

Report

ilpianista

4 years ago

Use 1.5 ;)

Report

lgsalvati

4 years ago

Perfetto,grazie mille :)
Dopo installo l'ultima versione,gran bel lavoro!

Report

ilpianista

4 years ago

To read plasmoids in /usr/local you need to export KDEDIRS="/usr/local:$KDEDIRS"

Report

Moviuro

4 years ago

Hi :)

The text displayed by your plasmoid is _not_ the window title ! It's the application name (which is very different): I expect the plasmoid to tell me: "KDE-Look.org" instead of "Firefox"... (And XBar is already displaying the application's name in my panel :) )
I suggest you change the name of your plasmoid and write an explanation of what it does ;)

That's it :) Great work anyway !

Report

ilpianista

4 years ago

Thanks, renamed :)

I didn't know XBar, but from what I understand it's part of Bespin, I'm right?

Report

Moviuro

4 years ago

Yes, that's it :)

XBar is part of the Bespin suite ^_^
BTW (off-topic), does the appmenu also work for GTK apps such as Eclipse or Firefox & Chromium ?

And (not off-topic), I think you could create a QML plasmoid displaying the window's name (because on my laptop, I don't have any way of knowing the window's name: no title bar, XBar). For info the window's title is in xprop's WM_NAME :)

Report

ilpianista

4 years ago

You ask, I code. :)

I added an option in the plasmoid settings to show the window title. Try it!

Report

Moviuro

4 years ago

Oh yeah ! You rock :)

(But now, I think the name of your plasmoid should be "Title Bar replacement Plasmoid", or something like that :) )

Really super cool :D

Report

ilpianista

4 years ago

I guess the name is fine (already renamed once, is enough :)

About the GTK apps, you need libdbusmenu-gtk{2,3} and you have to patch both gtk2 and gtk3 (if you use gtk3 app) with the ubuntu patches. A lot of work imho :)
I _think_ this work ouf-of-the-box only in Kubuntu then.

Report

gcala

4 years ago

Instead of "Desktop" why not showing the name of the current activity?

Thanks for your work.

Report

ilpianista

4 years ago

sounds like a great idea!

Report

blackpaw

4 years ago

A handy addition that adds to the flexibility of kde, looks good.

Report

gioloi

4 years ago

When I try to compile, it give me this error:
No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.8)
So I added the line above at the top of CMakeLists.txt
but now I have this error:
CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/giorgio/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
So I give up.. Please help, thanks in advance



Report

ilpianista

4 years ago

I guess you need kdelibs5-dev

Report

gioloi

4 years ago

Thanks!

Report

blackpaw

4 years ago

You need to install kdelibs5-dev.

sudo apt-get install kdelibs5-dev

Report

3 years ago

2.0
* Add a tooltip which dispays current application name and window title
* Add the option to set the maximum width for the plasmoid
* Add an option which allows to display the activity name everytime or to completely disable this feature (Issue #4).

1.9
* Fix cmake install dir
* Add the option to set the font family through the settings dialog

1.8
* Fix the Bold setting not restored (Issue #2)
* Fix the plasmoid height in the panel
* Fix the text vertical alignment not centered
* Add the Underline text setting
* Drop the Frame element

1.7
* Added an option in the settings to show the application icon

1.6
* Fix regression. Center the text ever.

1.5
* Added an option in the settings to set the font style (bold or italic)
* Added an option in the settings to set the font color
* Added an option in the settings to set the plasmoid effect (Plain, Raised, Sunken)
* Set a minimum value for the fixed width

1.4
* Add an option in the settings panel to set a fixed width
* Downgrade KDE required version to 4.8

1.3
* Add an option in the settings panel to show the full window title

1.2
* Renamed as Application Name Plasmoid

1.1
* Show the name of the activity if there's no window focused

1.0
* First release

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
2.0
updated Feb 15 2014
added Sep 29 2012
downloads today
0
page views today 2