… | |
… | |
562 | |
562 | |
563 | A common use case is to fade the background image when the terminal loses |
563 | A common use case is to fade the background image when the terminal loses |
564 | focus, often together with the C<-fade> command line option. In fact, |
564 | focus, often together with the C<-fade> command line option. In fact, |
565 | there is a special function for just that use case: C<focus_fade>. |
565 | there is a special function for just that use case: C<focus_fade>. |
566 | |
566 | |
567 | Example: use two entirely different bacckground images, depending on |
567 | Example: use two entirely different background images, depending on |
568 | whether the window has focus. |
568 | whether the window has focus. |
569 | |
569 | |
570 | FOCUS ? keep { load "has_focus.jpg" } : keep { load "no_focus.jpg" } |
570 | FOCUS ? keep { load "has_focus.jpg" } : keep { load "no_focus.jpg" } |
571 | |
571 | |
572 | =cut |
572 | =cut |