/* * globalconf.h - basic globalconf.header * * Copyright © 2007-2009 Julien Danjou * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ #ifndef AWESOME_GLOBALCONF_H #define AWESOME_GLOBALCONF_H #define SN_API_NOT_YET_FROZEN #include #include #include #include #include "objects/key.h" #include "color.h" #include "font.h" #include "common/xembed.h" typedef struct wibox_t wibox_t; typedef struct a_screen screen_t; typedef struct button_t button_t; typedef struct widget_t widget_t; typedef struct client_t client_t; typedef struct tag tag_t; ARRAY_TYPE(button_t *, button) ARRAY_TYPE(tag_t *, tag) ARRAY_TYPE(screen_t, screen) ARRAY_TYPE(client_t *, client) ARRAY_TYPE(wibox_t *, wibox) /** Main configuration structure */ typedef struct { /** Connection ref */ xcb_connection_t *connection; /** Event and error handlers */ xcb_event_handlers_t evenths; /** Default screen number */ int default_screen; /** Keys symbol table */ xcb_key_symbols_t *keysyms; /** Logical screens */ screen_array_t screens; /** True if xinerama is active */ bool xinerama_is_active; /** Root window key bindings */ key_array_t keys; /** Root window mouse bindings */ button_array_t buttons; /** Modifiers masks */ uint16_t numlockmask, shiftlockmask, capslockmask, modeswitchmask; /** Check for XTest extension */ bool have_xtest; /** Clients list */ client_array_t clients; /** Embedded windows */ xembed_window_array_t embedded; /** Stack client history */ client_array_t stack; /** Lua VM state */ lua_State *L; /** Default colors */ struct { xcolor_t fg, bg; } colors; /** Default font */ font_t *font; /** The event loop */ struct ev_loop *loop; /** The key grabber function */ int keygrabber; /** The mouse pointer grabber function */ int mousegrabber; /** Focused screen */ screen_t *screen_focus; /** Wiboxes */ wibox_array_t wiboxes; /** The startup notification display struct */ SnDisplay *sndisplay; } awesome_t; extern awesome_t globalconf; #endif // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80