2 // You can edit these symbols to change the behavior & appearance of flwm.
3 // Turning off features will make flwm smaller too!
5 ////////////////////////////////////////////////////////////////
8 // Turn this on for click-to-type (rather than point-to-type).
9 // On: clicking on the window gives it focus
10 // Off: pointing at the window gives it the focus.
11 #define CLICK_TO_TYPE 0
13 // Most window managers consider this and click-to-type equivalent.
14 // On: clicking anywhere on window raises it
15 // Off: you have to click on the border to raise window
16 #define CLICK_RAISES CLICK_TO_TYPE
18 // For point-to-type, sticky focus means you don't lose the focus
19 // until you move the cursor to another window that wants focus.
20 // If this is off you lose focus as soon as the cursor goes outside
21 // the window (such as to the desktop):
22 #define STICKY_FOCUS 1
24 // For point-to-type, after this many seconds the window is raised,
25 // nothing is done if this is not defined:
26 //#define AUTO_RAISE 0.5
28 // set this to zero to remove the multiple-desktop code. This will
29 // make flwm about 20K smaller
32 // set this to zero for "new desktop" to just create one without asking
33 // for a name. This saves 12K or so of fltk input field code:
34 #define ASK_FOR_NEW_DESKTOP_NAME 1
36 // wm2 has no close box, for good reasons. Unfortunately too many programs
37 // assume there is one and have no other way to close a window. For a more
38 // "pure" implementation set this to zero:
41 // set this to zero to remove the minimize/window-shade button:
42 #define MINIMIZE_BOX 1
44 // If this is false the minimize button only changes the width of the
45 // window, so it acts like a Mac window shade. This was the original
46 // behavior, the new version makes it smaller vertically so it is just
47 // big enough to show the window title:
48 #define MINIMIZE_HEIGHT 1
50 // Read links from ~/.wmx to make menu items to run programs:
51 #define WMX_MENU_ITEMS 1
53 // Menu item to run a new xterm (if no wmx items found):
54 #define XTERM_MENU_ITEM 1
56 // Hotkeys (see Hotkeys.C for exactly what they do):
57 #define STANDARD_HOTKEYS 1 // alt+esc, alt+tab, alt+shift+tab
58 #define KWM_HOTKEYS 1 // ctrl+tab and ctrl+Fn for desktop switching
59 #define CDE_HOTKEYS defined(__sgi) // alt+fn do actions like raise/lower/close
60 #define WMX_HOTKEYS 1 // alt+up/down/enter/delete
61 #define WMX_DESK_HOTKEYS 0 // alt+left/right (conflict with Netscape)
62 #define DESKTOP_HOTKEYS 0 // alt+fn goes to desktop n
64 ////////////////////////////////////////////////////////////////
67 // Color for active window title bar (also for selected menu items):
68 // If not defined, no active window title highlighting is done.
70 #define ACTIVE_COLOR 0xF0F0F0
72 //#define ACTIVE_COLOR 0x000080
74 // thickness of the border edge on each side (includes XBORDER):
80 // font for titles (if not set, helvetica bold is used):
81 // If this name is specific enough the font size is ignored.
82 //#define TITLE_FONT "-*-helvetica-bold-r-normal--*"
83 #define TITLE_FONT_SIZE 12
85 // thickness of title bar (LEFT is added to it):
86 #define TITLE_WIDTH (TITLE_FONT_SIZE+3)
88 // size & position of buttons (must fit in title bar):
89 #define BUTTON_W TITLE_WIDTH
90 #define BUTTON_H BUTTON_W
91 #define BUTTON_LEFT LEFT
92 #define BUTTON_TOP TOP
93 #define BUTTON_BOTTOM BOTTOM
95 // how many pixels from edge for resize handle:
97 // set this to zero to disable resizing by grabbing left edge:
100 // must drag window this far off screen to snap the border off the screen:
102 // must drag window this far off screen to actually move it off screen:
103 #define SCREEN_SNAP 100
105 // button decorations:
106 #define CLOSE_X 1 // windoze-style X in close button
107 #define CLOSE_HITTITE_LIGHTNING 0 // The ancient Hittite symbol for lightning
108 #define ICONIZE_BOX 0 // small box in iconize button
109 #define MINIMIZE_ARROW 0 // minimize button draws a <- rather than |
111 // default colors for cursor:
113 #define CURSOR_FG_COLOR 0xff0000
115 #define CURSOR_FG_COLOR 0x000000
117 #define CURSOR_BG_COLOR 0xffffff
119 // "Clock in the title bar" code contributed by Kevin Quick
120 // <kquick@iphase.com>:
122 // Add a clock to the active window's title bar using specified
123 // strftime fmt Note: in keeping with the minimalistic, fast, and
124 // small philosophy of the flwm, the clock will only be updated
125 // once/minute so any display of seconds is frivolous.
126 //#define SHOW_CLOCK "%I:%M %p %Z"
128 // We also support the concept of a clock alarm. The alarm is
129 // triggered by delivering SIGALRM to flwm and cleared by delivering
130 // SIGCONT to flwm. When the alarm is active, the foreground and
131 // background colors of the clock display are determined by the
132 // following settings. (The following are unused if SHOW_CLOCK is not
134 #define ALARM_FG_COLOR 0x00ffff
135 #define ALARM_BG_COLOR 0xff0000
137 ////////////////////////////////////////////////////////////////
140 #define MAX_MENU_WIDTH 300
142 // size of the little pictures in the menu:
143 #define MENU_ICON_W 18
144 #define MENU_ICON_H 15
146 // font to use in menus (if not set helvetica is used):
147 //#define MENU_FONT "-*-helvetica-medium-r-normal--*"
148 #define MENU_FONT_SIZE 12
150 ////////////////////////////////////////////////////////////////
151 // You probably don't want to change any of these:
154 #define TITLE_FONT_SLOT FL_FREE_FONT
156 #define TITLE_FONT_SLOT FL_BOLD
160 #define MENU_FONT_SLOT Fl_Font(FL_FREE_FONT+1)
162 #define MENU_FONT_SLOT FL_HELVETICA
165 #define CURSOR_BG_SLOT Fl_Color(30)
166 #define CURSOR_FG_SLOT Fl_Color(31)