
XMMS Bar for 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
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
17 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.
17 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
16 years ago
Report
nuka
16 years ago
Report
matzie
16 years ago
"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
17 years ago
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
17 years ago
#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
17 years ago
[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 ^!^
Report
ZIOlele
17 years ago
Report
gackt3541
17 years ago
yes.....
i found the problem . i forgot to install xmms-devel.
^!^
Report
wizzard
17 years ago
Report
ageitgey
17 years ago
it's addToolTip(), look in examples/API
Report
wizzard
17 years ago
always used addImageTooltip :D:D
Report
wizzard
17 years ago
It's somehow still missing :)
Report
ageitgey
17 years ago
Does that not do what you want?
Report
wizzard
17 years ago
the same with createPopupItem() (noticed in help(karamba))
Report
ageitgey
17 years ago
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
ageitgey
17 years ago
Report
wizzard
17 years ago
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
17 years ago
Report
techniq
17 years ago
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
ageitgey
17 years ago
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