--- rxvt-unicode/src/perl/background 2013/10/03 01:11:38 1.84 +++ rxvt-unicode/src/perl/background 2016/07/07 17:38:34 1.91 @@ -1,8 +1,8 @@ #! perl -#:META:X_RESOURCE:%.expr:string:background expression -#:META:X_RESOURCE:%.border:boolean:respect the terminal border -#:META:X_RESOURCE:%.interval:seconds:minimum time between updates +#:META:RESOURCE:%.expr:string:background expression +#:META:RESOURCE:%.border:boolean:respect the terminal border +#:META:RESOURCE:%.interval:seconds:minimum time between updates =head1 NAME @@ -56,7 +56,7 @@ Or specified as a X resource: - URxvt.background-expr: scale keep { load "/path/to/mybg.png" } + URxvt.background.expr: scale keep { load "/path/to/mybg.png" } =head1 THEORY OF OPERATION @@ -134,7 +134,7 @@ scale 2, load "$HOME/mypic.png" This enlarges the image by a factor of 2 (200%). As you can see, C -has now two arguments, the C<200> and the C expression, while +has now two arguments, the C<2> and the C expression, while C only has one argument. Arguments are separated from each other by commas. @@ -564,7 +564,7 @@ focus, often together with the C<-fade> command line option. In fact, there is a special function for just that use case: C. -Example: use two entirely different bacckground images, depending on +Example: use two entirely different background images, depending on whether the window has focus. FOCUS ? keep { load "has_focus.jpg" } : keep { load "no_focus.jpg" } @@ -958,9 +958,9 @@ =item focus_fade $factor, $color, $img Fades the image by the given factor (and colour) when focus is lost (the -same as the C<-fade>/C<-fadecolo> command line options, which also supply +same as the C<-fade>/C<-fadecolor> command line options, which also supply the default values for C and C<$color>. Unlike with C<-fade>, the -C<$factor> is the real value, not a percentage value (that is, 0..1, not +C<$factor> is a real value, not a percentage value (that is, 0..1, not 0..100). Example: do the right thing when focus fading is requested. @@ -1188,7 +1188,7 @@ # set background pixmap $self->set_background ($img, $self->{border}); - $self->scr_recolour (0); + $self->scr_recolor (0); $self->want_refresh; }