Event-ScreenSaver

 view release on metacpan or  search on metacpan

bin/player-pause  view on Meta::CPAN


	return;
}

sub loader {

	my $load   = shift;
	my $module =
		  !defined $load       ? die "Nothing to load!\n"
		: $load eq 'mpd'       ? 'Audio::MPD'
		: $load eq 'amarok'    ? 'DCOP::Amarok::Player'
		: $load eq 'rhythmbox' ? 'Net::DBus'
		:                        die "Unknown player $load!\n";
	my $file = $module;
	$file =~ s{::}{/}xms;
	$file .= '.pm';

	eval{ require $file };
	if ($EVAL_ERROR) {
		die "Please install $module to manage " . ucfirst $load . "\n";
	}

	return;
}

__DATA__

=head1 NAME

player-pause - Pauses music players when the screen saver starts.

=head1 VERSION

This documentation refers to player-pause version 0.0.3.

=head1 SYNOPSIS

   player-pause [option] mpd|amarok|rhythmbox

 OPTIONS:
  -p --player=mpd|amarok|rhythmbox
               Sets the player to pause when the screen saver starts

  -v --verbose Show more detailed option
     --version Prints the version information
     --help    Prints this help information
     --man     Prints the full documentation for player-pause

=head1 DESCRIPTION

=head1 SUBROUTINES/METHODS

=head1 DIAGNOSTICS

=head1 CONFIGURATION AND ENVIRONMENT

=head1 DEPENDENCIES

=head1 INCOMPATIBILITIES

=head1 BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

=head1 AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

=head1 LICENSE AND COPYRIGHT

Copyright (c) 2009 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>.  This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

=cut



( run in 0.388 second using v1.01-cache-2.11-cpan-39bf76dae61 )