ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.89 by root, Sat Dec 13 12:24:33 2014 UTC vs.
Revision 1.91 by sf-exg, Thu Jul 7 17:38:34 2016 UTC

54 54
55 urxvt --background-expr 'scale keep { load "/path/to/mybg.png" }' 55 urxvt --background-expr 'scale keep { load "/path/to/mybg.png" }'
56 56
57Or specified as a X resource: 57Or specified as a X resource:
58 58
59 URxvt.background-expr: scale keep { load "/path/to/mybg.png" } 59 URxvt.background.expr: scale keep { load "/path/to/mybg.png" }
60 60
61=head1 THEORY OF OPERATION 61=head1 THEORY OF OPERATION
62 62
63At startup, just before the window is mapped for the first time, the 63At startup, just before the window is mapped for the first time, the
64expression is evaluated and must yield an image. The image is then 64expression is evaluated and must yield an image. The image is then
132get a percentage): 132get a percentage):
133 133
134 scale 2, load "$HOME/mypic.png" 134 scale 2, load "$HOME/mypic.png"
135 135
136This enlarges the image by a factor of 2 (200%). As you can see, C<scale> 136This enlarges the image by a factor of 2 (200%). As you can see, C<scale>
137has now two arguments, the C<200> and the C<load> expression, while 137has now two arguments, the C<2> and the C<load> expression, while
138C<load> only has one argument. Arguments are separated from each other by 138C<load> only has one argument. Arguments are separated from each other by
139commas. 139commas.
140 140
141Scale also accepts two arguments, which are then separate factors for both 141Scale also accepts two arguments, which are then separate factors for both
142horizontal and vertical dimensions. For example, this halves the image 142horizontal and vertical dimensions. For example, this halves the image

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines