This is a useful SuperKaramba theme for those who constantly listen to music while they work. This is a bar that displays your XMMS playlist and provides basic controls and play status. And it autohides when not in use.
Basically, the idea is that you move your mouse pointer to the edge of the screen, and XMMS Bar pops out. Then you can scroll through your playlist with the scroll wheel on your mouse, click on a song to choose it, and hit play. Other basic controls are provided, as well as a "time remaining" display.
So now you don't have to constantly stop your work to find XMMS in the taskbar, pop it up, find your song, play it, etc. Just move your mouse to the left edge of the screen and choose your favorite song, then it automatically disappears again!
The secondary reason for creating this is to provide an example of several of the new functions I have added to SuperKaramba recently, including:
changeText() changeTextColor() changeTextFont() changeTextSize() getting mouse scroll wheel data in widgetClicked()
Also, this is a good example of how to use python elements to enhance a regular theme and how to mix python with a regular theme successfully.
You need xmmsctrl installed to use this properly. You might already have it, if not you can find it at:
http://user.it.uu.se/~adavid/utils/
Enjoy! Comments appreciated.
Credits:
Some of the graphics are a super-modified version of the "fiRe" theme for XMMS by ?
The status bar and other simple elements for the .theme portion are adapted from xmms.theme by ?
The rest, including the xmmsbar.py is by meLast changelog:
0.2:
Fixed a bug for small playlists.
0.3:
Really fixed the playlist bug. Made the auto-hide occur a lot fast.
I love xmmsbar. I love beep. They didn't work together.
"xmmsctrl playlist" returns garbage with beep.
"xmmsctrl playfiles" works.
I replaced the couple of places in xmssbar.py where it said the first of those commands, with the second - literally just swapping them over.
Now xmmsbar works with beep.
:-))))
Thx!
While I'm listening to music, I get this repeating info in my console window:
Headstrong - Trapt - Headstrong - Trapt
doing heavy refresh
unicode start
unicode end
Headstrong - Trapt - Headstrong - Trapt
doing heavy refresh
unicode start
unicode end
Headstrong - Trapt - Headstrong - Trapt
doing heavy refresh
unicode start
unicode end
How do I stop this? I noticed a reference to this, but I don't know if it was fixed. BTW I'm using superkaramba .033.
Also is there a way to hide the xmms player that also opens up?
I have installed xmmsctrl, but the song name can't show in the playlist .
#karamba xmmsbar.theme
libGL error: InitDriver failed
QGDict::hashKeyString: Invalid null key
136400168
karamba
toggleLocked
unicode start
unicode end
Evanescence - Even in death
unicode start
unicode end
Evanescence - Even in death
/usr/share/apps/karamba/scripts/xmmsctrl
Found xmmsctrl, excellent!
Traceback (most recent call last):
File "xmmsbar.py", line 123, in widgetUpdated
karamba.changeTextColor(widget, text, 255, 255, 255)
AttributeError: 'module' object has no attribute 'changeTextColor'
Call to widgetUpdated failed
unicode start
unicode end
Evanescence - Even in death
Traceback (most recent call last):
File "xmmsbar.py", line 129, in widgetUpdated
redispPlaylist(widget)
File "xmmsbar.py", line 57, in redispPlaylist
text = display_lines[i]
IndexError: list index out of range
Call to widgetUpdated failed
Traceback (most recent call last):
File "xmmsbar.py", line 129, in widgetUpdated
redispPlaylist(widget)
File "xmmsbar.py", line 57, in redispPlaylist
text = display_lines[i]
IndexError: list index out of range
Call to widgetUpdated failed
anyone know ?
Thank you so much ^!^
I can't install xmmsctrl !!
[ginux@gackt3541 xmmsctrl-1.6]$ ls
Changelog Makefile README samples xmmsctrl.c
[ginux@gackt3541 xmmsctrl-1.6]$ make
make: xmms-config: Command not found
make: xmms-config: Command not found
gcc -o xmmsctrl xmmsctrl.c -Wall -ansi -pedantic -Wshadow -Wmissing-prototypes -W -O2 -DVERSION=\"1.6\"
................
................
Thank you so much ^!^
createPopupItem doesn't "really exist". Well it does, but it doesn't work. Thats why its not documented in API. It should have been commented out so it wouldn't show up in help(), oh well.
by the way, addImageTooltip() works fine for me.
Make sure you add it to an image while the image is actually where you want the tooltip to be (you did read API, right?? hehe)
The tooltip won't follow the image currently...
It will start and control xmms, but won't autohide for me or display the playlist. I have xmmsctrl installed, as well as superkaramba G version.
I loaded karamba from konsole and noticed these errors repeating. Not a python coder so didn't know how to correct them.
unicode start
unicode end
System of a Down - Bounce
Traceback (most recent call last):
File "/home/techniq/Documents/Karamba-Themes/xmmsbar/xmmsbar.py", line 129, in widgetUpdated
redispPlaylist(widget)
File "/home/techniq/Documents/Karamba-Themes/xmmsbar/xmmsbar.py", line 57, in redispPlaylist
text = display_lines[i]
IndexError: list index out of range
*I did just notice that it will load the playlist (if small), but then goes away with the error in konsole, so I'm guessing its a problem with refreshing the list.
BTW, I've very much looking forward to using this.
I am stupid... hehe.
I knew about that problem and for some reason thought I fixed it.
It should work now. Please let me know if you still have problems.
Thanks
Ratings & Comments
20 Comments
Can you tell me what icon set you are using in that screenshot? Looks very nice :)
snowe2
I love xmmsbar. I love beep. They didn't work together. "xmmsctrl playlist" returns garbage with beep. "xmmsctrl playfiles" works. I replaced the couple of places in xmssbar.py where it said the first of those commands, with the second - literally just swapping them over. Now xmmsbar works with beep. :-)))) Thx!
While I'm listening to music, I get this repeating info in my console window: Headstrong - Trapt - Headstrong - Trapt doing heavy refresh unicode start unicode end Headstrong - Trapt - Headstrong - Trapt doing heavy refresh unicode start unicode end Headstrong - Trapt - Headstrong - Trapt doing heavy refresh unicode start unicode end How do I stop this? I noticed a reference to this, but I don't know if it was fixed. BTW I'm using superkaramba .033. Also is there a way to hide the xmms player that also opens up?
I have installed xmmsctrl, but the song name can't show in the playlist . #karamba xmmsbar.theme libGL error: InitDriver failed QGDict::hashKeyString: Invalid null key 136400168 karamba toggleLocked unicode start unicode end Evanescence - Even in death unicode start unicode end Evanescence - Even in death /usr/share/apps/karamba/scripts/xmmsctrl Found xmmsctrl, excellent! Traceback (most recent call last): File "xmmsbar.py", line 123, in widgetUpdated karamba.changeTextColor(widget, text, 255, 255, 255) AttributeError: 'module' object has no attribute 'changeTextColor' Call to widgetUpdated failed unicode start unicode end Evanescence - Even in death Traceback (most recent call last): File "xmmsbar.py", line 129, in widgetUpdated redispPlaylist(widget) File "xmmsbar.py", line 57, in redispPlaylist text = display_lines[i] IndexError: list index out of range Call to widgetUpdated failed Traceback (most recent call last): File "xmmsbar.py", line 129, in widgetUpdated redispPlaylist(widget) File "xmmsbar.py", line 57, in redispPlaylist text = display_lines[i] IndexError: list index out of range Call to widgetUpdated failed anyone know ? Thank you so much ^!^
I can't install xmmsctrl !! [ginux@gackt3541 xmmsctrl-1.6]$ ls Changelog Makefile README samples xmmsctrl.c [ginux@gackt3541 xmmsctrl-1.6]$ make make: xmms-config: Command not found make: xmms-config: Command not found gcc -o xmmsctrl xmmsctrl.c -Wall -ansi -pedantic -Wshadow -Wmissing-prototypes -W -O2 -DVERSION=\"1.6\" ................ ................ Thank you so much ^!^
Oh! yes..... i found the problem . i forgot to install xmms-devel. ^!^
Yuo need to install xmms-devel
Great theme. Maybe I can use the Text functions until tooltips are supported :)
Tooltips are supported, aren't they? The should be in as of 0.17g it's addToolTip(), look in examples/API
damn i'm stupid :D always used addImageTooltip :D:D
haha no i'm not stupid :) It's somehow still missing :)
No, I'm stupid. It is addImageTooltip() Does that not do what you want?
no, this never worked for me, it says its not defined in the module. the same with createPopupItem() (noticed in help(karamba))
Stop, im a bit confused now! The script doesnt report it to be missing in the module anymore, but I still dont see a tooltip (i focused the window)
createPopupItem doesn't "really exist". Well it does, but it doesn't work. Thats why its not documented in API. It should have been commented out so it wouldn't show up in help(), oh well.
by the way, addImageTooltip() works fine for me. Make sure you add it to an image while the image is actually where you want the tooltip to be (you did read API, right?? hehe) The tooltip won't follow the image currently...
wait a minute ... shouldn't karamba be part of official kde 3.2 :)
It will start and control xmms, but won't autohide for me or display the playlist. I have xmmsctrl installed, as well as superkaramba G version. I loaded karamba from konsole and noticed these errors repeating. Not a python coder so didn't know how to correct them. unicode start unicode end System of a Down - Bounce Traceback (most recent call last): File "/home/techniq/Documents/Karamba-Themes/xmmsbar/xmmsbar.py", line 129, in widgetUpdated redispPlaylist(widget) File "/home/techniq/Documents/Karamba-Themes/xmmsbar/xmmsbar.py", line 57, in redispPlaylist text = display_lines[i] IndexError: list index out of range *I did just notice that it will load the playlist (if small), but then goes away with the error in konsole, so I'm guessing its a problem with refreshing the list. BTW, I've very much looking forward to using this.
I am stupid... hehe. I knew about that problem and for some reason thought I fixed it. It should work now. Please let me know if you still have problems. Thanks