
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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
7 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
7 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
8 years ago
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
8 years ago
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
8 years ago
PlasmaComponents.Label {
id: text
text: visibleText
font.weight: Font.Bold
,,,
Report
lgsalvati
8 years ago
Dopo installo l'ultima versione,gran bel lavoro!
Report
ilpianista
8 years ago
Report
ilpianista
8 years ago
Report
Moviuro
8 years ago
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
8 years ago
I didn't know XBar, but from what I understand it's part of Bespin, I'm right?
Report
Moviuro
8 years ago
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
8 years ago
I added an option in the plasmoid settings to show the window title. Try it!
Report
Moviuro
8 years ago
(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
8 years ago
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
8 years ago
Thanks for your work.
Report
ilpianista
8 years ago
Report
blackpaw
8 years ago
Report
gioloi
8 years ago
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
blackpaw
8 years ago
sudo apt-get install kdelibs5-dev
Report
ilpianista
8 years ago
Report
gioloi
8 years ago
Report