XMMS Bar for SuperKaramba

Karamba & Superkaramba

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

0
Score 50.0%
Description:

XMMS Bar for SuperKaramba

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 me
Last changelog:

16 years ago

0.2:

Fixed a bug for small playlists.

0.3:

Really fixed the playlist bug.
Made the auto-hide occur a lot fast.

burhankhalid

15 years ago

Can you tell me what icon set you are using in that screenshot? Looks very nice :)

Report

nuka

15 years ago

snowe2

Report

matzie

15 years ago

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!

Report

calhoun

16 years ago

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?

Report

gackt3541

16 years ago

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 ^!^

Report

gackt3541

16 years ago

I can't install xmmsctrl !!
[[email protected] xmmsctrl-1.6]$ ls
Changelog Makefile README samples xmmsctrl.c

[[email protected] 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 ^!^

Report

ZIOlele

16 years ago

Yuo need to install xmms-devel

Report

gackt3541

16 years ago

Oh!
yes.....
i found the problem . i forgot to install xmms-devel.

^!^

Report

wizzard

16 years ago

Great theme. Maybe I can use the Text functions until tooltips are supported :)

Report

C

ageitgey

16 years ago

Tooltips are supported, aren't they? The should be in as of 0.17g

it's addToolTip(), look in examples/API

Report

wizzard

16 years ago

damn i'm stupid :D
always used addImageTooltip :D:D

Report

wizzard

16 years ago

haha no i'm not stupid :)

It's somehow still missing :)

Report

C

ageitgey

16 years ago

No, I'm stupid. It is addImageTooltip()

Does that not do what you want?

Report

wizzard

16 years ago

no, this never worked for me, it says its not defined in the module.
the same with createPopupItem() (noticed in help(karamba))

Report

C

ageitgey

16 years ago

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...

Report

C

ageitgey

16 years ago

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.

Report

wizzard

16 years ago

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)

Report

kola

16 years ago

wait a minute ... shouldn't karamba be part of official kde 3.2 :)

Report

techniq

16 years ago

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.

Report

C

ageitgey

16 years ago

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

Report

16 years ago

0.2:

Fixed a bug for small playlists.

0.3:

Really fixed the playlist bug.
Made the auto-hide occur a lot fast.

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3
updated Apr 25 2003
added Apr 25 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1