
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
This is intended as a more streamlined analogue of the standard "Now Playing" plasmoid. Instead of a collection of buttons and sliders, only the title and album art of the currently-playing track are shown, and can be clicked to advance to the next track (or resume playback, as appropriate). Obviously, this won't be much use to those that don't use album art, but in my case, I find it to be a more concise way of accessing the playback functionality I most commonly use.
Requires Plasma 4.5. Currently there is no support for placing the plasmoid inside a panel.
The default image shown when no album art is available is thanks to Amarok.
9 years ago
0.2.3:
- Improved corner rounding of album art.
0.2.2:
- Fixed bug in configuration loading.
0.2.1:
- Added configuration interface for main background.
- Fixed restoration of config settings.
0.2:
- Added configuration interface for text background.
- Better handling of odd Amarok behaviour
- Fixed action-icon glitch when all sources are removed.
0.1:
- Initial release.
9 years ago
0.2.3:
- Improved corner rounding of album art.
0.2.2:
- Fixed bug in configuration loading.
0.2.1:
- Added configuration interface for main background.
- Fixed restoration of config settings.
0.2:
- Added configuration interface for text background.
- Better handling of odd Amarok behaviour
- Fixed action-icon glitch when all sources are removed.
0.1:
- Initial release.
iten
8 years ago
Traceback (most recent call last):
File "/home/toto/.kde4/share/apps/plasma/plasmoids/current-song/contents/code/main.py", line 180, in dataUpdated
songID = self.songIDStr(data)
File "/home/toto/.kde4/share/apps/plasma/plasmoids/current-song/contents/code/main.py", line 310, in songIDStr
return "%s [%i] -- %s, #%i" % (title, length, album, track)
TypeError: %d format: a number is required, not QVariant
Report
Maarty
9 years ago
Nice job! could you increase maximum
size of the plasmoid in future releases?
It looks pretty small on my 27" monitor.
Report
ingvarg
9 years ago
what can I do to fix it?
Report
keystonerose
9 years ago
Report
ingvarg
9 years ago
but plasma tells me it is version 0.2.1 (:
Report
ingvarg
9 years ago
it isn't (:
nvm, all is great, i'm ur fan (;
Report
ingvarg
9 years ago
used old version, I'll test the new version
Report
vexxed
9 years ago
And for anyone who needs to use my method (described above) to make it work on Plasma 4.4 or lower, the line that needs to be commented out is at 191.
For future reference (and so I don't have to repost this with every update), just search the file for
self.iconWidget.setMaximumIconSize(QSizeF(self.MAX_ICON_SIZE, self.MAX_ICON_SIZE))
and comment it out by putting a # infront of it. Save, install, voila.
Report
keystonerose
9 years ago
Report
vexxed
9 years ago
Report
keystonerose
9 years ago
Report
vexxed
9 years ago
def onClick
If mouse.y is less-than middleLine
change song;
if mouse.y is equal-to or greater-than middleLine
pause song;
(Forgive me if I'm way off the mark here.)
Report
Githzerai
9 years ago
However, would it be possible to add some sort of font config dialog (even the most simplest one)?
Depending on used plasma theme and wallpaper, it might become difficullt to read song titles, like here:
http://tinyurl.com/356avj4
Cheers.
Report
keystonerose
9 years ago
Report
Githzerai
9 years ago
I think that that this would be more than enough for majority of plasma theme/background combinations, or at least for those I've tried.
Great job,
Cheers.
Report
vexxed
9 years ago
This object could not be created for the following reason: Script initialisation failed.
Any solutions?
Mandriva 2010.1
KDE 4.4.3
Report
vexxed
9 years ago
Plasma <4.5 has a problem with line 146 in main.py. So, you have to extract the plasmoid, go in to the folder /129891-current-song-0.1/contents/code and then open main.py and comment out line 146 by putting a # infront of it. It should look like this:
#self.iconWidget.setMaximumIconSize(QSizeF(self.MAX_ICON_SIZE, self.MAX_ICON_SIZE))
Save the file, then cd back until you're outside of the plasmoid folder. Finally, just do
plasmapkg -i /129891-current-song-0.1/
and it should install. The only bug I've encountered so far is that most of the time the album art doesn't show up.
Report
vexxed
9 years ago
Album art AND song title don't show up.
Report
keystonerose
9 years ago
Report
keystonerose
9 years ago
I haven't tested the plasmoid with Plasma 4.4, either, so perhaps that's it? I'm not sure what different that would make, though.
Report
Lole
9 years ago
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkgScHPSm/metadata.desktop, line 1: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkgScHPSm/metadata.desktop, line 2: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkgScHPSm/metadata.desktop, line 3: " Invalid entry (missing ']')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkgScHPSm/metadata.desktop, line 4: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkgScHPSm/metadata.desktop, line 7: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkg9vjd5g/metadata.desktop, line 1: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkg9vjd5g/metadata.desktop, line 2: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkg9vjd5g/metadata.desktop, line 3: " Invalid entry (missing ']')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkg9vjd5g/metadata.desktop, line 4: " Invalid entry (missing '=')
"KConfigIni: In file /tmp/kde-lorenzo/plasmapkg9vjd5g/metadata.desktop, line 7: " Invalid entry (missing '=')
plasmapkg(1961)/libplasma Plasma::Package::installPackage: Package plugin name not specified
Installazione di /home/lorenzo/129891-current-song-0.1.plasmoid non riuscita.
Report
keystonerose
9 years ago
https://bugs.kde.org/show_bug.cgi?id=249980
https://bbs.archlinux.org/viewtopic.php?pid=820108
As a workaround, you can extract the contents of the .plasmoid file (which is actually a ZIP archive), then run plasmapkg -i . in the extracted directory.
Report
Lole
9 years ago
Report
bitcrazy
9 years ago
openSUSE 11.3
KDE 4.5.1
Qt 4.6.3
Report