1. Shlomi Fish
  2. shlomi-fish-homepage


shl...@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed f333b7d

Added the "/nowplay" Script to the bits and bobs, and made the markup
of the bits and bobs page better.

  • Participants
  • Parent commits f30c12b
  • Branches default

Comments (0)

Files changed (2)

File t2/open-source/bits-and-bobs/nowplay-xchat.pl

View file
+#!/usr/bin/perl -w
+use strict;
+use Xmms::Remote ();
+IRC::register("Xmms Song Displayer", "1.0", "", "");
+IRC::add_command_handler("nowplay", "display_now_playing_song");
+my $remote = Xmms::Remote->new();
+sub display_now_playing_song
+    my $pos = $remote->get_playlist_pos();
+    my $title = $remote->get_playlist_title($pos);
+    IRC::command("/me is listening to $title");

File t2/open-source/bits.html.wml

View file
-<h2>GnuPG Insta-Party Signature List Verification Script</a></h2>
+<h2 id="gnupg_sign_verify">GnuPG Insta-Party Signature List Verification Script</h2>
 Some key-signing parties are conducted in a way that the 
-<h2>TWiki Installation Scripts</h2>
+<h2 id="twiki_install">TWiki Installation Scripts</h2>
 This is <a href="<bit_link "shlomif-twiki-installation-automation-2004-09-10.tar.gz" />">a collection of bash scripts I wrote</a> to automate the installation
 of <a href="http://twiki.org/">TWiki</a> - a popular Wiki implementation. 
-<h2><a href="<bit_link "open-inventor-bsd-daemon/" />">Open Inventor 
+<h2 id="open_inventor_bsd_daemon"><a href="<bit_link "open-inventor-bsd-daemon/" />">Open Inventor 
 3-D BSD Daemon</a></h2>
 created as a Technion project in the Computer Graphics course.
-<h2><a href="<bit_link "gringotts-patch/" />">Patch for Gringotts</a></h2>
+<h2 id="gringotts"><a href="<bit_link "gringotts-patch/" />">Patch for Gringotts</a></h2>
 This is a patch for
 allows it to compile with the latest Gtk+, and fixes some other annoyances.
+<h2 id="xchat_xmms_nowplay"><a href="<bit_link "nowplay-xchat.pl" />">X-Chat /nowplay command using XMMS</a></h2>
+What this little Perl script does is register an 
+<a href="http://www.xchat.org/">X-Chat</a> command called <tt>/nowplay</tt>,
+that whenever invoked displays a message of "/me is listening to My Artist -
+My Song" in the current channel. Feel free to make any use of it whatsoever 
+under the terms of the MIT X11 license. You need to install the 
+<a href="http://search.cpan.org/dist/Xmms-Perl/">Xmms-Perl distribution</a>
+and have the X-Chat Perl interface. To use, make it executable and put it 
+under your <tt>$HOME/.xchat2</tt> directory.