i3
i3.h
Go to the documentation of this file.
1/*
2 * vim:ts=4:sw=4:expandtab
3 *
4 * i3 - an improved dynamic tiling window manager
5 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
6 *
7 * i3.h: global variables that are used all over i3.
8 *
9 */
10#pragma once
11
12#include <config.h>
13
14#include <sys/time.h>
15#include <sys/resource.h>
16
17#include <xcb/shape.h>
18#include <xcb/xcb_keysyms.h>
19#include <xcb/xkb.h>
20
21#include <X11/XKBlib.h>
22
23#define SN_API_NOT_YET_FROZEN 1
24#include <libsn/sn-launcher.h>
25
26#include "queue.h"
27#include "data.h"
28#include "xcb.h"
29
31extern const char *i3_version;
32
36extern struct rlimit original_rlimit_core;
38extern bool debug_build;
40extern int listen_fds;
41extern int conn_screen;
50extern xcb_window_t ewmh_window;
54extern xcb_timestamp_t last_timestamp;
55extern SnDisplay *sndisplay;
56extern xcb_key_symbols_t *keysyms;
57extern char **start_argv;
58extern Display *xlibdpy, *xkbdpy;
59extern int xkb_current_group;
60extern TAILQ_HEAD(bindings_head, Binding) * bindings;
61extern TAILQ_HEAD(autostarts_head, Autostart) autostarts;
62extern TAILQ_HEAD(autostarts_always_head, Autostart) autostarts_always;
63extern TAILQ_HEAD(ws_assignments_head, Workspace_Assignment) ws_assignments;
64extern TAILQ_HEAD(assignments_head, Assignment) assignments;
65extern SLIST_HEAD(stack_wins_head, Stack_Window) stack_wins;
66
67/* Color depth, visual id and colormap to use when creating windows and
68 * pixmaps. Will use 32 bit depth and an appropriate visual, if available,
69 * otherwise the root window’s default (usually 24 bit TrueColor). */
70extern uint8_t root_depth;
71extern xcb_visualid_t visual_id;
72extern xcb_colormap_t colormap;
73
75extern xcb_window_t root;
76extern struct ev_loop *main_loop;
77extern bool only_check_config;
78extern bool force_xinerama;
struct autostarts_always_head autostarts_always
Definition: main.c:80
struct autostarts_head autostarts
Definition: main.c:77
struct assignments_head assignments
Definition: main.c:83
struct ws_assignments_head ws_assignments
Definition: main.c:87
struct bindings_head * bindings
Definition: main.c:74
#define TAILQ_HEAD(name, type)
Definition: queue.h:318
#define SLIST_HEAD(name, type)
Definition: queue.h:93
xcb_timestamp_t last_timestamp
The last timestamp we got from X11 (timestamps are included in some events and are used for some thin...
Definition: main.c:54
const char * i3_version
Git commit identifier, from version.c.
Definition: version.c:13
Display * xkbdpy
Definition: i3.h:58
bool xkb_supported
Definition: i3.h:74
int xkb_current_group
Definition: handlers.c:22
int conn_screen
Definition: main.c:46
xcb_colormap_t colormap
Definition: main.c:64
int listen_fds
The number of file descriptors passed via socket activation.
Definition: main.c:36
bool force_xinerama
Definition: main.c:94
xcb_key_symbols_t * keysyms
Definition: main.c:68
uint8_t root_depth
Definition: main.c:62
SnDisplay * sndisplay
Definition: main.c:49
Display * xlibdpy
xcb_window_t root
Definition: main.c:57
struct rlimit original_rlimit_core
The original value of RLIMIT_CORE when i3 was started.
Definition: main.c:33
bool debug_build
Whether this version of i3 is a debug build or a release build.
xcb_window_t ewmh_window
The EWMH support window that is used to indicate that an EWMH-compliant window manager is present.
Definition: ewmh.c:12
bool xcursor_supported
Definition: main.c:90
bool only_check_config
xcb_visualid_t visual_id
char ** start_argv
Definition: main.c:42
bool shape_supported
Definition: i3.h:74
struct ev_loop * main_loop
Definition: main.c:66
Stores which workspace (by name or number) goes to which output.
Definition: data.h:225
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
Definition: data.h:300
Holds a command specified by either an:
Definition: data.h:365
An Assignment makes specific windows go to a specific workspace/output or run a command for that wind...
Definition: data.h:590