]>
iEval git - app-xmms2-notifier.git/blob - xmms2-notifier
92ffcd5df2c501350766426552f018cb725830c7
5 use App
::XMMS2
::Notifier
;
8 my $format = '$artist - $title';
9 GetOptions
("format=s" => \
$format);
10 App
::XMMS2
::Notifier
::run
($format)
16 xmms2-notifier - script which notifies you what xmms2 is playing
20 # Shows libnotify notifications e.g. "Silence - Cellule"
23 # Shows libnotify notifications e.g. "Cellule by Silence (L'autre endroit), year 2005, genre Electro"
24 xmms2-notifier --format="$title by $artist ($album), year $date, genre $genre"
28 xmms2-notifier is a script which shows libnotify notifications when
29 the song is changed and when the playback is started/resumed.
31 You can control the notification format with the B<--format> argument.
32 The following strings are replaced:
38 The song bitrate, in bits/s. Example: 785104
42 Usually the year the song was published. Example: 2005
46 The format of each sample. Example: S16
50 An URL that points to the song. Example: file:///ext/Music/Silence+-+Cellule.flac
54 The XMMS2 id of the song. Example: 498
58 The number of channels the song has. Example: 2
62 The sample rate of the song, in Hz. Example: 44100
66 The track number in the album. Example: 1
70 The genre of the song. Example: Electro
74 The artist/band. Example: Silence
78 The album the song is from. Example: L'autre endroit
82 The song title. Example: Cellule
92 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
94 =head1 COPYRIGHT AND LICENSE
96 Copyright (C) 2013-2016 by Marius Gavrilescu
98 This library is free software; you can redistribute it and/or modify
99 it under the same terms as Perl itself, either Perl version 5.14.2 or,
100 at your option, any later version of Perl 5 you may have available.
This page took 0.05102 seconds and 5 git commands to generate.