JoeyrS
July 18th, 2005, 11:29 AM
This howto shows some application of the plugin bmp-songchange, a port of the old xmms songchange plugin.
Lets go.
Open a terminal session and enter:
wget http://joeyrs.altervista.org/bmp-songchange_0.0.1-2_i386.deb
sudo dpkg -i bmp-songchange_0.0.1-2_i386.deb
(I've made that package because there is no an official version. That one works fine in Ubuntu and Debian.)
Now the Beep-Media-Player Songchange plugin is installed on our ubuntu, lets configure it.
- Run beep-media-player and select Preferences -> Plugins -> General
- Click in "Song Change 0.0.1" CheckBox (Activate it)
- Click Preferences.
In Song change Command Box type:
echo "Current Song: %s" >~/.bmp/songchange.dat
(This outputs the title of your current song in a file.)
In Playlist end Command Box type:
echo "" >~/.bmp/songchange.dat
(This clear the file if the playlist ends.)
You can optionally include these strings:
%F frequency (in hertz)
%c number of channels
%f filename (full path)
%l length (in milliseconds)
%n name
%r rate (in bits per second)
%s name (an alias for %n)
%t playlist position (%02d)
From now you'll have the title of the current song in a file (~/.bmp/songchange.dat); how we can use it?
XChat:
Want to print in a channel the title of your current song? It's very simple, just type in your current xchat window:
/exec -o cat ~/.bmp/songchange.dat
You can simplify that command in two modes:
- Adding a button in the userlist panel:
Type in your current xchat window:
/addbutton SongChange exec -o cat ~/.bmp/songchange.dat
- Making an alias:
Select Menu -> Settings -> Advanced -> Replace Menu
Add a new alias typing in name box: song and in command box:
exec -o cat ~/.bmp/songchange.dat
Click on Save Button.
Now you can show your song typing: /song
XOSD:
XOSD is a simple library to display shaped text on your X display, like a TV on-screen display. You can use it for displaying the title of the current song. Install it by typing: apt-get install xosd-bin or using synaptic.
After the install we can display the song title by using osd_cat command.
Using XOSD (Example):
osd_cat -f"-adobe-helvetica-bold-*-*-*-20-*-*-*-*-*-*-*" -s1 -pbottom -o-40 -cgreen -d5 ~/.bmp/songchange.dat
Making automatic the OSD SongChange:
Let's return to Beep-Media-Player Preferences and modify:
echo "Current Song: %s" >~/.bmp/songchange.dat to:
echo "Current Song: %s" >~/.bmp/songchange.dat && osd_cat -f"-adobe-helvetica-bold-*-*-*-20-*-*-*-*-*-*-*" -d5 ~/.bmp/songchange.dat
From now osd_cat displays your current song title every time the song changes,
you can refer at http://ldots.org/xosd-guide/index.html for personalizing your OSD Title.
Here is an example of OSD SongChange: http://img69.imageshack.us/img69/4619/xosd7sl.png
You can use both of these tips together.
That's all. Hope this are useful, any comment would be appreciated.
Lets go.
Open a terminal session and enter:
wget http://joeyrs.altervista.org/bmp-songchange_0.0.1-2_i386.deb
sudo dpkg -i bmp-songchange_0.0.1-2_i386.deb
(I've made that package because there is no an official version. That one works fine in Ubuntu and Debian.)
Now the Beep-Media-Player Songchange plugin is installed on our ubuntu, lets configure it.
- Run beep-media-player and select Preferences -> Plugins -> General
- Click in "Song Change 0.0.1" CheckBox (Activate it)
- Click Preferences.
In Song change Command Box type:
echo "Current Song: %s" >~/.bmp/songchange.dat
(This outputs the title of your current song in a file.)
In Playlist end Command Box type:
echo "" >~/.bmp/songchange.dat
(This clear the file if the playlist ends.)
You can optionally include these strings:
%F frequency (in hertz)
%c number of channels
%f filename (full path)
%l length (in milliseconds)
%n name
%r rate (in bits per second)
%s name (an alias for %n)
%t playlist position (%02d)
From now you'll have the title of the current song in a file (~/.bmp/songchange.dat); how we can use it?
XChat:
Want to print in a channel the title of your current song? It's very simple, just type in your current xchat window:
/exec -o cat ~/.bmp/songchange.dat
You can simplify that command in two modes:
- Adding a button in the userlist panel:
Type in your current xchat window:
/addbutton SongChange exec -o cat ~/.bmp/songchange.dat
- Making an alias:
Select Menu -> Settings -> Advanced -> Replace Menu
Add a new alias typing in name box: song and in command box:
exec -o cat ~/.bmp/songchange.dat
Click on Save Button.
Now you can show your song typing: /song
XOSD:
XOSD is a simple library to display shaped text on your X display, like a TV on-screen display. You can use it for displaying the title of the current song. Install it by typing: apt-get install xosd-bin or using synaptic.
After the install we can display the song title by using osd_cat command.
Using XOSD (Example):
osd_cat -f"-adobe-helvetica-bold-*-*-*-20-*-*-*-*-*-*-*" -s1 -pbottom -o-40 -cgreen -d5 ~/.bmp/songchange.dat
Making automatic the OSD SongChange:
Let's return to Beep-Media-Player Preferences and modify:
echo "Current Song: %s" >~/.bmp/songchange.dat to:
echo "Current Song: %s" >~/.bmp/songchange.dat && osd_cat -f"-adobe-helvetica-bold-*-*-*-20-*-*-*-*-*-*-*" -d5 ~/.bmp/songchange.dat
From now osd_cat displays your current song title every time the song changes,
you can refer at http://ldots.org/xosd-guide/index.html for personalizing your OSD Title.
Here is an example of OSD SongChange: http://img69.imageshack.us/img69/4619/xosd7sl.png
You can use both of these tips together.
That's all. Hope this are useful, any comment would be appreciated.