Haui's bytes

news, diary, journal, whatever

Irssi - mocnp.pl

This is a nowplaying script for moc and irssi. It also enables you to control moc from irssi. I recommend applying my patch to moc, as it’s the only way to determine whether you turned shuffle/repeat on or off.


/mocnp     prints the currently played song in the active channel
/play      starts playing, if moc's in state "pause"
/pause     pause the current song
/start     starts moc if it's not running or if it's in mode "stop"
/stop      stops moc
/next      next song
/prev      previous song
/shuffle   turns shuffle on/off (requires >=mocp 2.5)
/repeat    turns repeat on/off (requires >=mocp 2.5)