… | |
… | |
1453 | would yield White on Black, while on I<xterm>(1) it would yield Black |
1453 | would yield White on Black, while on I<xterm>(1) it would yield Black |
1454 | on White. |
1454 | on White. |
1455 | |
1455 | |
1456 | =back |
1456 | =back |
1457 | |
1457 | |
1458 | =head2 ALPHA CHANNEL SUPPORT |
1458 | =head2 ALPHA CHANNEL SUPPORT / TRANSPARENT COLOURS |
1459 | |
1459 | |
1460 | If Xft support has been compiled in and as long as Xft/Xrender/X don't get |
1460 | If Xft support has been compiled in and as long as Xft/Xrender/X don't get |
1461 | their act together, rxvt-unicode will support C<rgba:rrrr/gggg/bbbb/aaaa> |
1461 | their act together, rxvt-unicode will do it's own alpha channel management: |
1462 | (recommended, but B<MUST> have 4 digits/component) colour specifications, |
1462 | |
1463 | in addition to the ones provided by X, where the additional A component |
1463 | You can prefix any color with an opaquenes percentage enclosed in |
|
|
1464 | brackets, i.e. C<[percent]>, where C<percent> is a decimal percentage |
|
|
1465 | (0-100) that specifies the opacity of the color, where C<0> is completely |
|
|
1466 | transparent and C<100> is completely opaque. For example, C<[50]red> is a |
|
|
1467 | half-transparent red, while C<[95]#00ff00> is an almost opaque green. This |
|
|
1468 | is the recommended format to specify transparency values, and works with |
|
|
1469 | all ways to specify a colour. |
|
|
1470 | |
|
|
1471 | For complete control, rxvt-unicode also supports |
|
|
1472 | C<rgba:rrrr/gggg/bbbb/aaaa> (exactly four hex digits/component) colour |
|
|
1473 | specifications, where the additional C<aaaa> component specifies opacity |
1464 | specifies opacity (alpha) values. The minimum value of C<0> is completely |
1474 | (alpha) values. The minimum value of C<0000> is completely transparent, |
1465 | transparent). You can also prefix any color with C<[percent]>, where |
1475 | while C<ffff> is completely opaque). The two example colours from |
1466 | C<percent> is a decimal percentage (0-100) that specifies the opacity of |
1476 | earlier could also be specified as C<rgba:ff00/0000/0000/8000> and |
1467 | the color, where C<0> is completely transparent and C<100> is completelxy |
1477 | C<rgba:0000/ff00/0000/f332>. |
1468 | opaque. |
|
|
1469 | |
1478 | |
1470 | You probably need to specify B<"-depth 32">, too, and have the luck that |
1479 | You probably need to specify B<"-depth 32">, too, to force a visual with |
1471 | your X-server uses ARGB pixel layout, as X is far from just supporting |
1480 | alpha channels, and have the luck that your X-server uses ARGB pixel |
1472 | ARGB visuals out of the box, and rxvt-unicode just fudges around. |
1481 | layout, as X is far from just supporting ARGB visuals out of the box, and |
|
|
1482 | rxvt-unicode just fudges around. |
1473 | |
1483 | |
1474 | For example, the following selects an almost completely transparent red |
1484 | For example, the following selects an almost completely transparent black |
1475 | background, and an almost opaque pink foreground: |
1485 | background, and an almost opaque pink foreground: |
1476 | |
1486 | |
1477 | @@RXVT_NAME@@ -depth 32 -bg rgba:0000/0000/0000/aaaa -fg "[80]pink" |
1487 | @@RXVT_NAME@@ -depth 32 -bg rgba:0000/0000/0000/4444 -fg "[80]pink" |
1478 | |
1488 | |
1479 | I<Please note that transparency of any kind if completely unsupported by |
1489 | When not using a background image, then the interpretation of the |
1480 | the author. Don't bug him with installation questions!> |
1490 | alpha channel is up to your compositing manager (most interpret it as |
|
|
1491 | transparency of course). |
|
|
1492 | |
|
|
1493 | When using a background pixmap or pseudo-transparency, then the background |
|
|
1494 | colour will always behave as if it were completely transparent (so the |
|
|
1495 | background image shows instead), regardless of how it was specified, while |
|
|
1496 | other colours will either be transparent as specified (the background |
|
|
1497 | image will show through) on servers supporting the RENDER extension, or |
|
|
1498 | fully opaque on servers not supporting the RENDER EXTENSION. |
|
|
1499 | |
|
|
1500 | Please note that due to bugs in Xft, specifying alpha values might result |
|
|
1501 | in garbage being displayed when the X-server does not support the RENDER |
|
|
1502 | extension. |
1481 | |
1503 | |
1482 | =head1 ENVIRONMENT |
1504 | =head1 ENVIRONMENT |
1483 | |
1505 | |
1484 | B<@@RXVT_NAME@@> sets and/or uses the following environment variables: |
1506 | B<@@RXVT_NAME@@> sets and/or uses the following environment variables: |
1485 | |
1507 | |