
KXmmsController
Source (link to git-repo or to original if based on someone elses unmodified work):
I have just made a new release (0.2), which incorporates a couple of new features... Those might need some bugfixing, so please e-mail me or whatever so I can fix whatever problem there might be...
[/NEW RELEASE]
KXmmsController is a little Kicker applet that can hide XMMS from your desktop.
It will make you able to control most of XMMS with four buttons hanging around
your panel.
I got the idea for this applet from xmmsctrl, a teeny console program which can do
basically the same (and a little more, which I didn't think was relevant in the GUI
version). I believe xmmsctrl is more meant for scripting and automation
purposes, while KXmmsController is for direct user interference.
Note: This is not a "frontend" for xmmsctrl (e.g. a program that calls other
programs and reads their output), KXmmsController communicates directly
with XMMS...
Hope you like it! Of course you will need XMMS and KDE installed for it to work,
that's basically it...
0.3:
- Bugfixes (icons now work with Crystal 0.9 icon theme).
- Added tooltips.
- Icons all over the place.
0.2:
- Added a "compact" option, making it possible to hide the previous, play, and forward buttons.
- Added an option to control whether XMMS should be hidden by default or not.
- Added Settings-dialog to control the above.
0.1: First release. Works flawlessly on my computer (running Gentoo Linux, KDE 3.1.4, Qt 3.2.1 and all). Please notify me of bugs.
Ratings & Comments
18 Comments
I get these errors during make process: xmms.cpp:154: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [xmms.lo] Error 1 make[2]: Leaving directory `/home/rnd/kxmmscontroller/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rnd/kxmmscontroller' make: *** [all] Error 2 [root@localhost kxmmscontroller]# Im using Mandrake 9.2 with KDE 3.1 and XMMS 1.2.9
That you could do an program for the systray. The reason is, I have a large kicker, and the buttons for the kxmms are full size, so it dramatically adds to the width of my kicker. If a systray one was avilable, it would be ideal, preferably just the one icon with a menu to control from there. Hope this is something your prepared to do. Many thanks!
I'm afraid a systray app would require a complete rewrite and a lot of restructuring. I don't think that can be made without writing a whole new application. If you want to write your own, I will gladly help. Really, programming against XMMS is really easy. - Simon
Phew... 3 releases in 4 hours... ;-D - Simon
Searching a bit, I found that the jump-to functionality is actually added to the header file by a Gentoo-specific patch. You can add the following line to your /usr/include/xmms/xmmsctrl.h to make it work... void xmms_remote_show_jump_box(gint session); You can also download the whole header file here: http://www.ulsnes.dk/simon/xmmsctrl.h I don't think it is possible to hide XMMS completely (i.e. from the taskbar), not without fiddling with KWin (I think), and I would say that is overkill... Besides, it would be kinda bugger if my applet crashed while XMMS was totally hidden (at least for users uknowing of killall...). About size, you are right, it does need some space if your Kicker is large (or even Normal size), but for those of us running small or tiny Kickers, it is quite nice (IMHO ;-D). A grid is not a bad idea, however... - Simon
I just tried it and figured I would give some suggestions about how, I think, this could be improved. The first thing I noticed was how much space the damn thing takes up. I like to keep my kicker set as large, and this takes up about a 5th of my kicker space because the buttons are laid out horizontally. Perhaps you could change it to see if the kicker is big enough vertically to show the buttons in a grid for instance - like what the system tray applet does. Secondly, I would recommend adding tooltips so that you can figure out what each button does if the icons aren't found. On my system, using crystal 0.9, what I think is supposed to be rewind shows up as a New document icon. I would have liked to be able to hide xmms completely, so its not even visible in the taskbar when minimized, but it looks like you may have added an update that does that. I'll check it out. I was able to get it to compile also once I commented out line 135 of src/xmms.cpp. However the jumpto command doesn't work now obviously. If this is compiling for you, then perhaps you forgot to include a source file somewhere. doing a grep for xmms_remote_show_jump_box only returned that one source file which calls the function. thanks.
I made a new release with the features you requested... Please test for bugs... Programming is fun! :-D - Simon
lol, you can say that again ;-)
Thanks for your compliments... I'm glad you like it! I think the next step would be to implement some kind of config... I figure KConfig is the way to go, maybe I'll start working on that tonight. The reason I chose not to make it only a single button is that I might as well have made a systray icon in stead of an applet. But, well, of course it shouldn't be hard to implement... ;-) - Simon
I'd like to see configurable keyboard shortcuts so I can replace XmmsKDE by KXmmsController which is more 'eye-candy' :-)
Hell of a good job. Got it running on RH9
same here, but I had to comment out xmms_remote_show_jump_box(session); in xmms.cpp... could that be fixed in the next version? RH9, xmms 1.28
That's strange... Could you give me some compiler output?
xmms.cpp: In member function `virtual void Xmms::showJump()': xmms.cpp:135: `xmms_remote_show_jump_box' undeclared (first use this function) xmms.cpp:135: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [xmms.lo] Error 1 when i comment out line 135 it compiles and works fine :P
Seems there is a problem with your /usr/include/xmms/xmmsctrl.h file - It might be an older version shipping with RH9. I'll post a link for a working version in the description. - Simon
same problem here
Someone has done this.... it's been too long! :) Is their any chance you can add a mode where it just make one small icon, and we can right click on it to get a popup list on controls (AKA Juk style), then it does not hog the systray! Thanks
Sweet! I really like the low ui footprint and simplicity... Time to say goodbye to the mediacontrol applet! :)