#!/usr/bin/perl -w
#
# Luis Mondesi <lemsx1@gmail.com> 
# a simple script to generate a man page for splashy_config
#
# use: pod2man splashy_config.pod
#
use Pod::Text;
my $parser = Pod::Text->new (sentence => 0, width => 78);
$parser->parse_from_file($0,\*STDOUT);
exit 0;

=head1 NAME

B<Splashy> - a user-mode, POSIX and LSB compliant, boot splashing
system for UNIX.

=head1 SYNOPSIS

B<splashy_config>
[-h, --help]
[-s, --set-theme THEME]
[-i, --install-theme THEME.tar.gz]
[-r, --remove-theme THEME][--info]
[-c, --create-theme  [args...]]

=head1 DESCRIPTION 

Splashy displays an image and a progress bar at boot time. splashy_config is used to change Splashy configuration options.

=head1 OPTIONS

=over 8

=item B<-h, --help>

Print helps and exits

=item B<-s, --set-theme> THEME

Changes current theme to THEME

=item B<-i, --install-theme> THEME.tar.gz

Adds THEME to Splashy theme directory

=item B<-r, --remove-theme> THEME

Removes THEME from theme directory


=item B<--info>

Prints all relevant information from the main Splashy config file

=item B<-c, --create-theme [args...]> 

Create a theme in an interactive mode if no arguments, else see the extra arguments section below


=back

=head2 Extra arguments 

=over 12

=item B<--name>  NAME                 

Set the NAME of the new Splashy theme

=item B<--version> VERSION            

Set the VERSION of the new Splashy theme

=item B<--description> DESC           

Set the DESC of the new Splashy theme

=item B<--urls> URLs                  

Set the related URLs for this theme

=item B<--author> AUTHOR             

Set the AUTHOR(s) of the new Splashy theme

=item B<--boot-image> PATH            

Upload the boot image located at the specified PATH

=item B<--shutdown-image> PATH        

Upload the shutdown image located at the specified PATH

=item B<--error-image> PATH          

Upload the error image located at the specified PATH

=item B<--resume-image> PATH          

Upload the resume image located at the specified PATH

=item B<--suspend-image> PATH          

Upload the suspend image located at the specified PATH

=item B<--background-width> WIDTH     

Set the WIDTH of the background

=item B<--background-height> HEIGHT   

Set the HEIGHT of the background

=item B<--progressbar-x> X-POSITION   

Set the X-POSITION of the progress bar (percentage if the background height and width are not set, else pixel units)

=item B<--progressbar-y> Y-POSITION   

Set the Y-POSITION of the progress bar (percentage if the background height and width are not set, else pixel units)

=item B<--progressbar-width> WIDTH    

Set the WIDTH of the progress bar      (percentage if the background height and width are not set, else pixel units)

=item B<--progressbar-height> HEIGHT  

Set the HEIGHT of the progress bar     (percentage if the background height and width are not set, else pixel units)

=item B<--progressbar-red> RED        

Set the RED channel of the progress bar (0->255)

=item B<--progressbar-green> GREEN    

Set the GREEN channel of the progress bar (0->255)

=item B<--progressbar-blue> BLUE      

Set the BLUE channel of the progress bar (0->255)

=item B<--progressbar-alpha> ALPHA    

Set the ALPHA channel of the progress bar (0->255)

=item B<--progressbar-border-show> yes|no  

Set a border around the progressbar

=item B<--progressbar-border-red> RED  

Set the RED channel of the border around the progressbar (0->255)

=item B<--progressbar-border-green> GREEN  

Set the GREEN channel of the border around the progressbar (0->255)

=item B<--progressbar-border-blue> BLUE  

Set the BLUE channel of the border around the progressbar (0->255)

=item B<--progressbar-border-alpha> ALPHA  

Set the ALPHA channel of the border around the progressbar (0->255)

=item B<--progressbar-background-red> RED  

Set the RED channel of the background of the progressbar (0->255)

=item B<--progressbar-background-green> GREEN  

Set the GREEN channel of the background of the progressbar (0->255)

=item B<--progressbar-background-blue> BLUE  

Set the BLUE channel of the background of the progressbar (0->255)

=item B<--progressbar-background-alpha> ALPHA  

Set the ALPHA channel of the background of the progressbar (0->255)

=item B<--textbox-show> yes|no      

Set a text box

=item B<--textbox-x> X-POS          

Set the X-POS of the text box (percentage if the background height and width are not set, else pixel units)

=item B<--textbox-y> Y-POS          

Set the Y-POS of the text box (percentage if the background height and width are not set, else pixel units)

=item B<--textbox-width> WIDTH      

Set the WIDTH of the text box (percentage if the background height and width are not set, else pixel units)

=item B<--textbox-height> HEIGHT    

Set the HEIGHT of the text area (percentage if the background height and width are not set, else pixel units)

=item B<--textbox-red> RED          

Set the RED channel of the text area (0->255)

=item B<--textbox-green> GREEN      

Set the GREEN channel of the text area (0->255)

=item B<--textbox-blue> BLUE        

Set the BLUE channel of the text area (0->255)

=item B<--textbox-alpha> ALPHA      

Set the ALPHA channel of the text area (0->255)

=item B<--textbox-border-show> yes|no  

Set a border around the text area

=item B<--textbox-border-red> RED      

Set the RED channel of the border of the text area (0->255)

=item B<--textbox-border-green> GREEN  

Set the GREEN channel of the border of the text area (0->255)

=item B<--textbox-border-blue> BLUE    

Set the BLUE channel of the border of the text area (0->255)

=item B<--textbox-border-alpha> ALPHA  

Set the ALPHA channel of the border of the text area (0->255)

=item B<--text-font-file> FILE        

Upload the FONT file

=item B<--text-font-height> HEIGHT    

Set the HEIGHT of the text area font

=item B<--text-font-red> RED          

Set the RED channel of the text area font (0->255)

=item B<--text-font-green> GREEN      

Set the GREEN channel of the text area font (0->255)

=item B<--text-font-blue> BLUE        

Set the BLUE channel of the text area font (0->255)

=item B<--text-font-alpha> ALPHA      

Set the ALPHA channel of the text area font (0->255)

=item B<--autoverbose> yes|no         

Set if Splashy turn into verbose mode when an error appears at boot

=item B<--progressbar-visibility-boot> yes|no   

Set if Splashy shows a progress bar on boot

=item B<--progressbar-visibility-shutdown> yes|no 

Set if Splashy shows a progress bar on shutdown

=item B<--progressbar-visibility-resume> yes|no 

Set if Splashy shows a progress bar on resume

=item B<--progressbar-visibility-suspend> yes|no 

Set if Splashy shows a progress bar on suspend

=item B<--progressbar-direction-boot> forward|backward 

Set if the progress bar goes forward or backward on boot

=item B<--progressbar-direction-shutdown> forward|backward 

Set if the progress bar goes forward or backward on shutdown

=item B<--progressbar-direction-resume> forward|backward 

Set if the progress bar goes forward or backward on resume

=item B<--progressbar-direction-suspend> forward|backward 

Set if the progress bar goes forward or backward on suspend

=item B<--fadein> yes|no              

Set if Splashy appears smoothly

=item B<--fadeout> yes|no             

Set if Splashy disappears smoothly


=back

=head1 EXAMPLES

C</usr/bin/splashy_config --info>

Shows all the themes currently installed.

=head1 FILES

=over 8

=item I</etc/splashy/config.xml>

Main configuration. defines how splashy should be setup.

=item I</etc/splashy/themes/default/theme.xml>

Default theme. defines how the images displayed by splashy should be setup, their location
and other theme-related variables.

=back

=head1 SEE ALSO

B<splashy>(1), B<splashy_update>(1), B<splashy-config.xml>(5), B<splashy-theme.xml>(5)

=head1 AUTHORS
		
Vincent Amouret <vincent.amouret@gmail.com>
Luis Mondesi <lemsx1@gmail.com>

=cut
