diff options
author | grubert <grubert> | 2004-02-24 10:33:16 (GMT) |
---|---|---|
committer | grubert <grubert> | 2004-02-24 10:33:16 (GMT) |
commit | 08f170c3ef9b305f0b0954e7a21265790f246c1d (patch) | |
tree | 59c9cf2279816664fce2128bf754c5ecda64fd54 /doc | |
parent | be3b2db576ec5855fd615a65aa0f9a8a8e938d35 (diff) | |
download | fluxbox_pavel-08f170c3ef9b305f0b0954e7a21265790f246c1d.zip fluxbox_pavel-08f170c3ef9b305f0b0954e7a21265790f246c1d.tar.bz2 |
Changes from asenchi: removed style section refer to fluxstyle.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/fluxbox.1.in | 322 |
1 files changed, 10 insertions, 312 deletions
diff --git a/doc/fluxbox.1.in b/doc/fluxbox.1.in index 560fef1..94bd2e4 100644 --- a/doc/fluxbox.1.in +++ b/doc/fluxbox.1.in | |||
@@ -159,6 +159,10 @@ Clicking the workspace name brings up the toolbar menu. | |||
159 | Using the wheel on workspace name or the clock switches the workspace, this | 159 | Using the wheel on workspace name or the clock switches the workspace, this |
160 | could also be enabled for the whole desktop in the fluxbox menu. | 160 | could also be enabled for the whole desktop in the fluxbox menu. |
161 | .PP | 161 | .PP |
162 | When | ||
163 | .B desktop warping | ||
164 | is enabled, dragging a window outside the desktop will change to the next desktop. | ||
165 | .PP | ||
162 | Using the toolbar menu you can enter a name for the current workspace (when finished, | 166 | Using the toolbar menu you can enter a name for the current workspace (when finished, |
163 | press Enter). | 167 | press Enter). |
164 | One can choose the toolbar's position, in which layer it should be see LAYERs below | 168 | One can choose the toolbar's position, in which layer it should be see LAYERs below |
@@ -464,314 +468,7 @@ resources to specify colors, textures, pixmaps and fonts, and thus | |||
464 | the overall look of your window borders, menus and the toolbar. | 468 | the overall look of your window borders, menus and the toolbar. |
465 | .PP | 469 | .PP |
466 | The default installation of Fluxbox provides some of these style files. | 470 | The default installation of Fluxbox provides some of these style files. |
467 | Usually they are put in | 471 | See fluxstyle(1) to accomodate the growing number of style components. |
468 | .IR @pkgdatadir@/styles . | ||
469 | You can study or edit these files to grasp how the Fluxbox style mechanism | ||
470 | works. | ||
471 | You can use the | ||
472 | .BR [style] ", " [stylesdir] " and " [stylesmenu] | ||
473 | menu commands in your menu file to be able to select and change between styles | ||
474 | on the fly. | ||
475 | .PP | ||
476 | But you can also create a directory named | ||
477 | .I ~/.fluxbox/styles | ||
478 | in your homedirectory and put your own style files here. | ||
479 | Of course you may choose any name for this directory, but many downloadable | ||
480 | themes will rely on the name | ||
481 | .I styles | ||
482 | (following the bb.themes.org naming scheme). | ||
483 | .PP | ||
484 | To understand how the style mechanism works, you should have a little knowledge | ||
485 | of how X resources work. | ||
486 | .PP | ||
487 | X resources consist of a key and a value. | ||
488 | The key is constructed of several smaller keys (sometimes referred to as | ||
489 | children), delimited by a period (`.'). | ||
490 | Keys may also contain a star (`*') to serve as a wildcard, which means that one | ||
491 | line of typed text will match several keys. | ||
492 | This is useful for styles that are based on one or two colors. | ||
493 | .PP | ||
494 | Fluxbox allows you to configure it's three main components: the toolbar, the | ||
495 | menus and the window decorations. | ||
496 | .PP | ||
497 | The little window that shows the x-y position while dragging windows, borrows | ||
498 | it's style from the window's titlebar. | ||
499 | .PP | ||
500 | Here are some quick examples: | ||
501 | .EX | ||
502 | toolbar.clock.color: green | ||
503 | .EE | ||
504 | This sets the color resource of the toolbar clock to `green.' Another example: | ||
505 | .EX | ||
506 | menu*color: rgb:3/4/5 | ||
507 | .EE | ||
508 | This sets the color resource of the menu | ||
509 | .I and all of its `children' | ||
510 | to `rgb:3/4/5'. | ||
511 | (For a description of color names, see | ||
512 | .IR X (1).) | ||
513 | So this one also applies to | ||
514 | .IR menu.title.color " and " menu.frame.color . | ||
515 | And with | ||
516 | .EX | ||
517 | *font: -b&h-lucida-medium-r-normal-*-*-140-* | ||
518 | .EE | ||
519 | you set the font resource for all keys to this font name all at once. | ||
520 | (For information about the fonts installed on your system, you can use a program like | ||
521 | .IR xfontsel "(1), " gtkfontsel ", or " xlsfonts "(1).)" | ||
522 | .PP | ||
523 | Now, what makes Fluxbox just so spectacular, is its ability to render textures | ||
524 | on the fly. | ||
525 | Texture descriptions are specified directly to the key that they | ||
526 | should apply to, e.g.: | ||
527 | .ta \w'toolbar.clock.colorTo:\ 'u | ||
528 | .EX | ||
529 | toolbar.clock: Raised Gradient Diagonal Bevel1 | ||
530 | toolbar.clock.color: rgb:8/6/4 | ||
531 | toolbar.clock.colorTo: rgb:4/3/2 | ||
532 | .EE | ||
533 | Don't worry, we will explain right now! | ||
534 | A texture description consists of up to five fields, which are as follows: | ||
535 | .TP | ||
536 | .B Flat / Raised / Sunken | ||
537 | gives the component either a flat, raised or sunken appearance. | ||
538 | .TP | ||
539 | .B Gradient / Solid | ||
540 | tells Fluxbox to draw either a solid color or a gradient texture. | ||
541 | .TP | ||
542 | .B Horizontal / Vertical / Diagonal / Crossdiagonal / Pipecross / Elliptic / Rectangle / Pyramid | ||
543 | Select one of these texture types. They only work when also | ||
544 | .B Gradient | ||
545 | is specified! | ||
546 | .TP | ||
547 | .B Interlaced | ||
548 | tells Fluxbox to interlace the texture (darken every other line). | ||
549 | This option is most commonly used with gradiented textures, but from Fluxbox | ||
550 | version 0.60.3 on, it also works in solid textures. | ||
551 | .TP | ||
552 | .B Bevel1 / Bevel2 | ||
553 | tells Fluxbox which type of bevel to use. | ||
554 | Bevel1 is the default bevel. | ||
555 | The shading is placed on the edge of the image. | ||
556 | Bevel2 is an alternative. | ||
557 | The shading is placed one pixel in from the edge of the image. | ||
558 | .PP | ||
559 | Instead of a texture description, also the option | ||
560 | .B ParentRelative | ||
561 | is available, which makes the component appear as a part of its parent, e.g. | ||
562 | totally transparent. | ||
563 | .PP | ||
564 | Or for even more possibilities | ||
565 | .B Pixmap . | ||
566 | If pixmap texture is specified (it might not be necessary on every occasion) | ||
567 | the pixmap file is specified in a separate pixmap resource. | ||
568 | .EX | ||
569 | toolbar.clock: pixmap | ||
570 | toolbar.clock.pixmap: .fluxbox/styles/mine/clock_background.xpm | ||
571 | .EE | ||
572 | This feature might need some investigations, reports say that sometimes | ||
573 | the resources color and colorTo must be set and then they may not be set. | ||
574 | .PP | ||
575 | All gradiented textures are composed of two color values: the | ||
576 | .IR color " and " colorTo " resources." | ||
577 | When | ||
578 | .B Interlaced | ||
579 | is used in | ||
580 | .B Solid | ||
581 | mode, the | ||
582 | .I colorTo | ||
583 | resource is used to find the interlacing color. | ||
584 | .PP | ||
585 | Well, here is the complete component list, also all components together with | ||
586 | which kind of value they can contain. | ||
587 | Comments are preceded with an exclamation sign (!), which is also used for | ||
588 | comments in Fluxbox style c.q. X resource files. | ||
589 | .PP | ||
590 | .ta \w'window.button.unfocus.picColor:\ 'u | ||
591 | .nf | ||
592 | .\" | ||
593 | .\" The comments also to be translated! | ||
594 | .\" | ||
595 | ! The toolbar itself | ||
596 | toolbar: Texture | ||
597 | toolbar.color: Color | ||
598 | toolbar.colorTo: Color | ||
599 | |||
600 | ! The buttons on the toolbar | ||
601 | toolbar.button: Texture or \fIParentRelative\fR | ||
602 | toolbar.button.color: Color | ||
603 | toolbar.button.colorTo: Color | ||
604 | |||
605 | ! Color of the button arrows | ||
606 | toolbar.button.picColor: Color | ||
607 | |||
608 | ! Buttons in pressed state | ||
609 | toolbar.button.pressed: Texture \fI(e.g. Sunken)\fR or \fIParentRelative\fR | ||
610 | toolbar.button.pressed.color: Color | ||
611 | toolbar.button.pressed.colorTo: Color | ||
612 | |||
613 | ! Color of pressed button arrows | ||
614 | toolbar.button.pressed.picColor: Color | ||
615 | |||
616 | ! The toolbar workspace label | ||
617 | toolbar.label: Texture or \fIParentRelative\fR | ||
618 | toolbar.label.color: Color | ||
619 | toolbar.label.colorTo: Color | ||
620 | toolbar.label.textColor: Color | ||
621 | |||
622 | ! The toolbar window label | ||
623 | toolbar.windowLabel: Texture or \fIParentRelative\fR | ||
624 | toolbar.windowLabel.color: Color | ||
625 | toolbar.windowLabel.colorTo: Color | ||
626 | toolbar.windowLabel.textColor: Color | ||
627 | |||
628 | ! The toolbar clock | ||
629 | toolbar.clock: Texture or \fIParentRelative\fR | ||
630 | toolbar.clock.color: Color | ||
631 | toolbar.clock.colorTo: Color | ||
632 | toolbar.clock.textColor: Color | ||
633 | |||
634 | ! How the toolbar's text should be justified. | ||
635 | toolbar.justify: \fIcenter\fR, \fIleft\fR, or \fIright\fR | ||
636 | |||
637 | ! Font to be used for all toolbar components | ||
638 | toolbar.font: Font \fI(e.g. -*-helvetica-medium-r-normal-*-*-100-*)\fR | ||
639 | |||
640 | ! The menu titlebar | ||
641 | menu.title: Texture | ||
642 | menu.title.color: Color | ||
643 | menu.title.colorTo: Color | ||
644 | menu.title.textColor: Color | ||
645 | menu.title.font: Font | ||
646 | menu.title.justify: \fIcenter\fR, \fIleft\fR, or \fIright\fR | ||
647 | |||
648 | ! The menu frame | ||
649 | menu.frame: Texture | ||
650 | menu.frame.color: Color | ||
651 | menu.frame.colorTo: Color | ||
652 | menu.frame.textColor: Color | ||
653 | menu.frame.disableColor: Color | ||
654 | menu.frame.font: Font | ||
655 | ! Font can have a shadow. e.g. menu.frame.font: Verdana-8:shadow | ||
656 | menu.frame.justify: \fIcenter\fR, \fIleft\fR, or \fIright\fR | ||
657 | |||
658 | ! Bullets for submenu items | ||
659 | menu.bullet: \fIempty\fR, \fItriangle\fR, \fIsquare\fR, or \fIdiamond\fR | ||
660 | menu.bullet.position: \fIright\fR or \fIleft\fR | ||
661 | |||
662 | ! The highlighted menu item | ||
663 | menu.hilite: Texture (e.g. \fIRaised\fR) | ||
664 | menu.hilite.color: Color | ||
665 | menu.hilite.colorTo: Color | ||
666 | menu.hilite.textColor: Color | ||
667 | |||
668 | ! A focused window | ||
669 | window.title.focus: Texture | ||
670 | window.title.focus.color: Color | ||
671 | window.title.focus.colorTo: Color | ||
672 | |||
673 | ! An unfocused window | ||
674 | window.title.unfocus: Texture | ||
675 | window.title.unfocus.color: Color | ||
676 | window.title.unfocus.colorTo: Color | ||
677 | |||
678 | ! Window label in window.title | ||
679 | window.label.focus: Texture or \fIParentRelative\fR | ||
680 | window.label.focus.color: Color | ||
681 | window.label.focus.colorTo: Color | ||
682 | window.label.focus.textColor: Color | ||
683 | |||
684 | window.label.unfocus: Texture or \fIParentRelative\fR | ||
685 | window.label.unfocus.color: Color | ||
686 | window.label.unfocus.colorTo: Color | ||
687 | window.label.unfocus.textColor: Color | ||
688 | |||
689 | ! window label for active tab if window is not focussed | ||
690 | window.label.active: Texture | ||
691 | window.label.active.textColor: Color | ||
692 | |||
693 | ! Handlebar | ||
694 | window.handle.focus: Texture | ||
695 | window.handle.focus.color: Color | ||
696 | window.handle.focus.colorTo: Color | ||
697 | |||
698 | window.handle.unfocus: Texture | ||
699 | window.handle.unfocus.color: Color | ||
700 | window.handle.unfocus.colorTo: Color | ||
701 | |||
702 | ! Resize grips | ||
703 | window.grip.focus: Texture | ||
704 | window.grip.focus.color: Color | ||
705 | window.grip.focus.colorTo: Color | ||
706 | |||
707 | window.grip.unfocus: Texture | ||
708 | window.grip.unfocus.color: Color | ||
709 | window.grip.unfocus.colorTo: Color | ||
710 | |||
711 | ! Window buttons | ||
712 | window.button.focus: Texture or \fIParentRelative\fR | ||
713 | window.button.focus.color: Color | ||
714 | window.button.focus.colorTo: Color | ||
715 | window.button.focus.picColor: Color | ||
716 | |||
717 | window.button.unfocus: Texture or \fIParentRelative\fR | ||
718 | window.button.unfocus.color: Color | ||
719 | window.button.unfocus.colorTo: Color | ||
720 | window.button.unfocus.picColor: Color | ||
721 | |||
722 | window.button.pressed: Texture (e.g. \fISunken\fR) | ||
723 | window.button.pressed.color: Color | ||
724 | window.button.pressed.colorTo: Color | ||
725 | |||
726 | ! Frame around window | ||
727 | window.frame.focusColor: Color | ||
728 | window.frame.unfocusColor: Color | ||
729 | |||
730 | ! Font and justification for window labels | ||
731 | window.font: Font | ||
732 | window.justify: \fIcenter\fR, \fIleft\fR, or \fIright\fR | ||
733 | |||
734 | ! Slit resources | ||
735 | slit: | ||
736 | slit.color: Color | ||
737 | slit.colorTo: Color | ||
738 | |||
739 | ! Miscellaneous resources | ||
740 | |||
741 | ! A border can be drawn round all components | ||
742 | borderWidth: a number of pixels, e.g. \fI1\fR | ||
743 | borderColor: Color | ||
744 | |||
745 | bevelWidth: a number of pixels > 0 | ||
746 | handleWidth: a number of pixels > 0 | ||
747 | |||
748 | ! Width of the window frame | ||
749 | ! When not specified, frameWidth defaults to the value of bevelWidth | ||
750 | frameWidth: a number of pixels >= 0 | ||
751 | |||
752 | |||
753 | ! This command is executed whenever this style is selected. | ||
754 | ! Typically it sets the root window to a nice picture. | ||
755 | rootCommand: Shell command, e.g. \fIbsetroot -mod 4 4 -fg rgb: 5/6/6 -bg grey20\fR | ||
756 | |||
757 | ! Some of the bbtools read these old 0.51 resources | ||
758 | menuFont: Font | ||
759 | titleFont: Font | ||
760 | .fi | ||
761 | .PP | ||
762 | Now, this seems a long list, but remember, when you create your own style, you | ||
763 | can easily set lots of keys with a single command, e.g. | ||
764 | .EX | ||
765 | .ta \w'*unfocus.textColor:\ 'u | ||
766 | *color: slategrey | ||
767 | *colorTo: darkslategrey | ||
768 | *unfocus.color: darkslategrey | ||
769 | *unfocus.colorTo: black | ||
770 | *textColor: white | ||
771 | *unfocus.textColor: lightgrey | ||
772 | *font: lucidasans-10 | ||
773 | .EE | ||
774 | This sets already nice defaults for many components. | ||
775 | .\" --- keys --- | 472 | .\" --- keys --- |
776 | .SH KEYS FILE | 473 | .SH KEYS FILE |
777 | You can customise Fluxbox' key handling through the | 474 | You can customise Fluxbox' key handling through the |
@@ -1266,11 +963,12 @@ from the original Blackbox man page by Wilbert Berendsen | |||
1266 | and subsequently hacked upon by Tobias Klausmann | 963 | and subsequently hacked upon by Tobias Klausmann |
1267 | .nh | 964 | .nh |
1268 | <klausman@users.sourceforge.net> | 965 | <klausman@users.sourceforge.net> |
1269 | .nh | 966 | , |
1270 | and | 967 | <grubert@users.sourceforge.net> |
968 | , | ||
969 | <asenchi@asenchi.com> | ||
1271 | .hy | 970 | .hy |
1272 | <grubert@users.sourceforge.net>. | 971 | .PP |
1273 | .nh | ||
1274 | Numerous other languages could be available if someone jumps in. | 972 | Numerous other languages could be available if someone jumps in. |
1275 | .SH SEE ALSO | 973 | .SH SEE ALSO |
1276 | .IR bsetroot (1) | 974 | .IR bsetroot (1) |