… | |
… | |
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 | |
57 | Or specified as a X resource: |
57 | Or 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 | |
63 | At startup, just before the window is mapped for the first time, the |
63 | At startup, just before the window is mapped for the first time, the |
64 | expression is evaluated and must yield an image. The image is then |
64 | expression is evaluated and must yield an image. The image is then |
… | |
… | |
1186 | # } |
1186 | # } |
1187 | |
1187 | |
1188 | # set background pixmap |
1188 | # set background pixmap |
1189 | |
1189 | |
1190 | $self->set_background ($img, $self->{border}); |
1190 | $self->set_background ($img, $self->{border}); |
1191 | $self->scr_recolour (0); |
1191 | $self->scr_recolor (0); |
1192 | $self->want_refresh; |
1192 | $self->want_refresh; |
1193 | } |
1193 | } |
1194 | |
1194 | |
1195 | sub on_start { |
1195 | sub on_start { |
1196 | my ($self) = @_; |
1196 | my ($self) = @_; |