1#include "config.h" 2 3#define AFTERSTEP_INTERNALS 4 5#ifdef HAVE_LIMITS_H 6# include <limits.h> 7#elif defined(__FreeBSD__) 8# include <sys/cdefs.h> 9# include <sys/syslimits.h> 10#endif 11 12/* we don't do interhost network communications ! WE use Unix domain sockets! */ 13#define SAME_HOST 14 15/* Maximal length of config. file lines ; attention : the more you define 16 * the more memory it uses. It's safe to leave 255 for long lines. 17 */ 18#define MAXLINELENGTH 1024 /* path could be longer then 255 chars */ 19 20 /* ################### */ 21 /* Available libraries */ 22 /* ################### */ 23 24/* #define @HAVEXPM@*/ 25/* #define @HAVEJPEG@*/ 26/* #define @HAVEPNG@*/ 27/* #define @HAVESHAPE@*/ 28/* #define @HAVEXINE@ */ 29 30/* #if @have_xpm_write@ == 1*/ 31/* #define HAVE_XPM_WRITE*/ 32/* #else*/ 33/* #undef HAVE_XPM_WRITE */ 34/* #endif*/ 35 36 37 /* ######################### */ 38 /* Global configured options */ 39 /* ######################### */ 40 41#define DEFAULT_WINDOW_WAIT_TIMEOUT 1000 /* mlsec */ 42 43#define VERSION "@version@" 44#define CANONICAL_BUILD "@build@" 45#define CANONICAL_BUILD_OS "@build_os@" 46#define CANONICAL_BUILD_CPU "@build_cpu@" 47#define CANONICAL_BUILD_VENDOR "@build_vendor@" 48#define AFTER_BIN_DIR "@bindir@" 49#define AFTER_MAN_DIR "@mandir@/man1" 50#define AFTER_DOC_DIR "@datarootdir@/doc/afterstep" 51#define DEFAULT_ICON_DIR "@x_includes@/X11/bitmaps" 52#define DEFAULT_PIXMAP_DIR "@x_includes@/X11/pixmaps" 53#define DEFAULT_TTF_DIR "@x_libraries@/X11/fonts/TTF" 54#define AFTER_SHAREDIR "@datarootdir@/afterstep" 55#define AFTER_DIR "@with_afterdir@" 56#define AFTER_NONCF "non-configurable" 57#define AFTER_LOCALE "@with_locale@" 58 59 /* ############################## */ 60 /* In home or share directories : */ 61 /* ############################## */ 62 63#define START_DIR "start" 64#define BACK_DIR "backgrounds" 65#define LOOK_DIR "looks" 66#define THEME_DIR "themes" 67#define WEBCACHE_DIR "webcache" 68#define THUMBNAILS_DIR "thumbnails" 69#define COLORSCHEME_DIR "colorschemes" 70#define THEME_FILE_DIR "installed_themes" 71#define FEEL_DIR "feels" 72#define DESKTOP_DIR "desktop" 73#define FONT_DIR "desktop/fonts" 74#define ICON_DIR "desktop/icons" 75#define TILE_DIR "desktop/tiles" 76#define BARS_DIR "desktop/bars" 77#define BUTTONS_DIR "desktop/buttons" 78#define MYSTYLES_DIR "desktop/styles" 79#define COMP_FILE "compatibility" /* with -f oldrc */ 80#define BASE_FILE "base" /* scrdepth */ 81#define ASETROOT_FILE "asetroot" /* legacy background configuration */ 82#define THEME_OVERRIDE_FILE "theme-override" 83#define DEFAULT_BACK_NAME "default_background_%d" 84#define BACK_FILE AFTER_NONCF "/%d_background" /* desk */ 85#define LOOK_FILE AFTER_NONCF "/%d_look" /* desk */ 86#define FEEL_FILE AFTER_NONCF "/%d_feel" /* desk */ 87#define THEME_FILE AFTER_NONCF "/%d_theme" /* desk */ 88#define COLORSCHEME_FILE AFTER_NONCF "/%d_colorscheme" /* desk */ 89#define AFTER_SAVE AFTER_NONCF "/workspace_state" 90#define AFTER_FUNC_REMAP AFTER_NONCF "/remapped_functions" 91#define MENU_FILE AFTER_NONCF "/startmenu" 92#define GTKRC_TEMPLATE_FILE "gtkrc_template" /* gtkrc prototype */ 93#define GTKRC20_TEMPLATE_FILE "gtkrc-2.0_template" /* gtkrc prototype */ 94/* #define GTKRC_FILE "~/.gtkrc" */ /* compiled and ready to use gtkrc */ 95/* #define GTKRC20_FILE "~/.gtkrc-2.0" */ /* compiled and ready to use gtkrc */ 96#define KSCRC_TEMPLATE_FILE "kcsrc_template" /* KDE colourscheme prototype */ 97#define AS_KCSRC_FILE "AfterStep.kcsrc" 98#define KCSRC_FILE AFTER_NONCF "/AfterStep.kcsrc" /* compiled and ready to use kcsrc */ 99#define KDECS_DIR "$KDEHOME/share/apps/kdisplay/color-schemes" /* main kde config file referencing compiled kcsrc */ 100#define KDEGLOBALS_FILE "$KDEHOME/share/config/kdeglobals" /* main kde config file referencing compiled kcsrc */ 101#define AUTOEXEC_FILE "autoexec" 102#define DATABASE_FILE "database" 103#define DEFAULT_USER_LOOK "look.Mine" 104#define DEFAULT_USER_FEEL "feel.Mine" 105 106#define STANDARD_CATEGORIES_FILE "standard_categories" 107#define AFTERSTEP_APPS_DIR "applications" 108#define AFTERSTEP_CACHE_FILE AFTER_NONCF "/AfterStepCategories" 109#define GNOME_APPS_PATH "~/.gnome2/vfolders/applications/:$GNOMEDIR/share/applications:/usr/share/applications" 110#define GNOME_ICONS_PATH "~/.icons/gnome/48x48/apps/:$XDG_DATA_DIRS/icons/gnome/48x48/apps/:$GNOMEDIR/share/pixmaps:/usr/share/pixmaps:/usr/share/icons:/usr/share/icons/hicolor/48x48/apps:/usr/share/icons/hicolor/32x32/apps:/usr/share/icons/gnome/48x48/apps" 111#define GNOME_CACHE_FILE AFTER_NONCF "/GNOMECategories" 112#define KDE_APPS_PATH "$KDEDIR/share/applnk:$KDEDIR/share/applications:/usr/share/applnk:/usr/share/applications" 113#define KDE_ICONS_PATH "~/.icons/kde/48x48/apps/:$XDG_DATA_DIRS/icons/kde/48x48/apps/:$KDEDIR/share/icons/default.kde/48x48/apps:$KDEDIR/share/icons/hicolor/48x48/apps:$KDEDIR/share/icons/locolor/48x48/apps:/usr/share/pixmaps" 114#define KDE_CACHE_FILE AFTER_NONCF "/KDECategories" 115#define OTHER_APPS_PATH "/etc/X11/applnk:/usr/share/applications:/usr/local/share/applications" 116#define OTHER_ICONS_PATH "/usr/share/pixmaps:/usr/local/share/pixmaps:/usr/share/icons:/usr/share/icons/hicolor/48x48/apps:/usr/share/icons/hicolor/32x32/apps" 117#define OTHER_CACHE_FILE AFTER_NONCF "/OtherCategories" 118 119 120#define DEFAULT_CAPTURE_WINDOW_FILE "~/capture_window" 121#define DEFAULT_CAPTURE_FRAMEDWINDOW_FILE "~/capture_framedwindow" 122#define DEFAULT_CAPTURE_SCREEN_FILE "~/capture_screen" 123#define DONT_REPLACE_SCREENSHOT_FILES 1 /* undefine this to enabline replacing existing files with screenshots(dangerous) */ 124 125#define DEFAULT_COLORSCHEME_BASE 0xFF34404C /* base color of the default colorscheme ( The Stormy Skies ) */ 126 127 /* ############# */ 128 /* Look settings */ 129 /* ############# */ 130 131#define XIMAGELOADER "@with_imageloader@" 132#define SOUNDPLAYER "@with_soundplayer@" 133#define HELPCOMMAND "@with_helpcommand@" 134#define DEFAULTSTARTMENUSORT @with_startsort@ 135#define ANIM_STEP 5 136#define ANIM_STEP_MAIN 5 137#define ANIM_DELAY 2 138 139 /* ############# */ 140 /* Look options */ 141 /* ############# */ 142 143/* #if @enable_audit@ == 1*/ 144/* #define DEBUG_ALLOCS*/ 145/* #else*/ 146/* #undef DEBUG_ALLOCS*/ 147/* #endif */ 148 149 /* ############## */ 150 /* Action strings */ 151 /* ############## */ 152 153/* Please don't translate the strings into the language which you use for your 154 * pop-up menus since this is default : some decisions about where a function 155 * is prohibited (based on mwm-function-hints) is based on a string comparison 156 * between the menu item and the strings below 157 */ 158 159#define MOVE_STRING "move" 160#define RESIZE_STRING1 "size" 161#define RESIZE_STRING2 "resize" 162#define MINIMIZE_STRING "minimize" 163#define MINIMIZE_STRING2 "iconify" 164#define MAXIMIZE_STRING "maximize" 165#define CLOSE_STRING1 "close" 166#define CLOSE_STRING2 "delete" 167#define CLOSE_STRING3 "destroy" 168#define CLOSE_STRING4 "quit" 169 170 /* #################### */ 171 /* OS dependant defines */ 172 /* #################### */ 173 174/* Really, no one but me should need this */ 175/* #define BROKEN_SUN_HEADERS */ 176 177/* Some logical checks */ 178#ifdef HAVE_UNAME 179#undef HAVE_GETHOSTNAME 180#endif 181 182/* Even if limits.h is included, allow PATH_MAX to sun unices */ 183#ifndef PATH_MAX 184#ifdef _POSIX_PATH_MAX 185#define PATH_MAX _POSIX_PATH_MAX 186#else 187#define PATH_MAX 255 188#endif 189#endif 190 191/* Allows gcc users to use inline, doesn't cause problems for others. */ 192#ifndef __GNUC__ 193#define AFTER_INLINE /* nothing */ 194#else 195#if defined(__GNUC__) && !defined(inline) 196#define AFTER_INLINE __inline__ 197#else 198#define AFTER_INLINE inline 199#endif /* __GNUC__ && !(inline) */ 200#endif /* !(__GNUC__) */ 201 202