1 /* 2 * pwm/config.h 3 * 4 * Copyright (c) Tuomo Valkonen 1999-2001. 5 * 6 * You may distribute and modify this program under the terms of either 7 * the Clarified Artistic License or the GNU GPL, version 2 or later. 8 */ 9 10 #ifndef INCLUDED_CONFIG_H 11 #define INCLUDED_CONFIG_H 12 13 #include "version.h" 14 15 16 /* Behaviour-controlling booleans. 17 * 18 * CF_NO_WILD_WINDOWS 19 * Disable "wild windows". Windows that request no border and title 20 * via MWM decoration hints are considered wild. They get no 21 * decorations and are even allowed to move themselves. 22 * 23 * CF_NO_LOCK_HACK 24 * Disable hack to ignore states of evil locking modifier keys. 25 * 26 * CF_NO_MWM_HINTS 27 * Ignore MWM hints. 28 * 29 * CF_NO_AUTOFOCUS 30 * Don't autofocus new transients of current window/new windows 31 * when there is no current window. 32 * 33 * CF_AUTOFOCUS_ALL 34 * Autofocus all new windows 35 * 36 * CF_CWIN_TOPLEFT 37 * Place small windows in multi-window frames at top left corner 38 * rather than center. 39 * 40 * CF_IGNORE_NONTRANSIENT_LOCATION 41 * Ignore client supplied window location for all but transient 42 * windows. 43 * 44 * CF_FLACCID_PLACEMENT_UDLR 45 * Place windows from top to bottom instead of left to right. 46 * 47 * CF_PACK_MOVE 48 * Enable pack_move function 49 * 50 * CF_GOTODIR 51 * Enable gotodir function 52 * 53 * CF_NO_NUMBERING 54 * Do not number windows with the same name (e.g xterm<2>) 55 * 56 */ 57 58 /*#define CF_NO_WILD_WINDOWS*/ 59 /*#define CF_NO_LOCK_HACK*/ 60 /*#define CF_NO_MWM_HINTS*/ 61 /*#define CF_NO_AUTOFOCUS*/ 62 /*#define CF_AUTOFOCUS_ALL*/ 63 /*#define CF_CWIN_TOPLEFT*/ 64 /*#define CF_IGNORE_NONTRANSIENT_LOCATION*/ 65 /*#define CF_NO_NUMBERING*/ 66 #define CF_FLACCID_PLACEMENT_UDLR 67 #define CF_PACK_MOVE 68 #define CF_GOTODIR 69 70 71 /* Don't modify these 72 */ 73 74 #ifndef PWM_VERSION 75 #define PWM_VERSION "" 76 #endif 77 78 #ifndef ETCDIR 79 #define ETCDIR "/etc" 80 #endif 81 82 #define CF_SYS_CONFIG_LOCATION ETCDIR"/pwm/" 83 #define CF_GLOBAL_CFGFILE CF_SYS_CONFIG_LOCATION"pwm.conf" 84 #define CF_USER_CONFIG_LOCATION ".pwm/" 85 #define CF_USER_CFGFILE CF_USER_CONFIG_LOCATION"pwm.conf" 86 87 #define GRDATA (&(wglobal.grdata)) 88 #define SCREEN (&(wglobal.screen)) 89 90 #define CF_FONT (GRDATA->font) 91 #define CF_MENU_FONT (GRDATA->menu_font) 92 93 #define CF_BORDER_WIDTH (GRDATA->border_width) 94 #define CF_BEVEL_WIDTH (GRDATA->bevel_width) 95 96 #define CF_BAR_MIN_WIDTH (GRDATA->bar_min_width) 97 #define CF_BAR_MAX_WIDTH_Q (GRDATA->bar_max_width_q) 98 #define CF_TAB_MIN_WIDTH (GRDATA->tab_min_width) 99 100 101 /* Drawing 102 */ 103 104 #define CF_TAB_TEXT_Y_PAD 2 105 #define CF_TAB_TEXT_MIN_X_PAD 2 106 #define CF_TAB_TEXT_MAX_X_PAD 20 107 108 #define CF_TAB_TEXT_Y_OFF (CF_BEVEL_WIDTH+CF_TAB_TEXT_Y_PAD) 109 110 #define CF_TAB_MIN_TEXT_X_OFF (CF_BEVEL_WIDTH+CF_TAB_TEXT_MIN_X_PAD) 111 #define CF_TAB_MAX_TEXT_X_OFF (CF_BEVEL_WIDTH+CF_TAB_TEXT_MAX_X_PAD) 112 113 #define CF_MENUTITLE_H_PAD 3 114 #define CF_MENUENT_H_PAD 3 115 #define CF_MENUTITLE_V_PAD CF_TAB_TEXT_Y_PAD 116 #define CF_MENUENT_V_PAD 3 117 118 #define CF_MENUTITLE_H_SPACE (CF_MENUTITLE_H_PAD+CF_BEVEL_WIDTH) 119 #define CF_MENUENT_H_SPACE (CF_MENUENT_H_PAD+CF_BEVEL_WIDTH) 120 #define CF_MENUTITLE_V_SPACE (CF_MENUTITLE_V_PAD+CF_BEVEL_WIDTH) 121 #define CF_MENUENT_V_SPACE CF_MENUENT_V_PAD 122 #define CF_MENU_V_SPACE CF_BEVEL_WIDTH 123 #define CF_SUBMENU_IND_H_SPACE 3 124 125 #define CF_WANT_TRANSPARENT_TERMS 126 127 /* Sizes and locations 128 */ 129 130 #define CF_WIN_MIN_WIDTH 8 131 #define CF_WIN_MIN_HEIGHT 8 132 133 #define CF_MAX_MOVERES_STR_SIZE 32 134 #define CF_MOVERES_WIN_X 5 135 #define CF_MOVERES_WIN_Y 5 136 137 #define CF_DRAG_TRESHOLD 2 138 #define CF_EDGE_RESISTANCE 16 139 #define CF_STEP_SIZE 16 140 #define CF_CORNER_SIZE (16+8) 141 142 143 /* Cursors 144 */ 145 146 #define CF_CURSOR_DEFAULT XC_left_ptr 147 #define CF_CURSOR_RESIZE XC_sizing 148 #define CF_CURSOR_MOVE XC_fleur 149 #define CF_CURSOR_DRAG XC_cross 150 151 152 /* Defaults 153 */ 154 155 #define CF_DBLCLICK_DELAY 250 156 #define CF_DEFAULT_N_WORKSPACES 6 157 #define CF_FALLBACK_FONT_NAME "fixed" 158 159 160 /* Menu scrolling 161 */ 162 163 #define SCROLL_DELAY 8 164 #define SCROLL_AMOUNT 4 165 #define SCROLL_BORDER 4 166 167 #endif /* INCLUDED_CONFIG_H */ 168