-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevilwm.h
101 lines (83 loc) · 2.02 KB
/
evilwm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* evilwm - minimalist window manager for X11
* Copyright (C) 1999-2022 Ciaran Anscomb <[email protected]>
* see README for license and other details. */
// Default option values
#define DEF_FONT "variable"
#define DEF_FG "goldenrod"
#define DEF_BG "grey50"
#define DEF_BW 1
#define DEF_FC "blue"
#define DEF_VDESKS 8
#define DEF_VDESKSMOD 0
#define DEF_SNAP 0
#define DEF_KBPX 16
#define DEF_QUICKMOVE 1.0
#define DEF_QUICKMOVEMS 250
#define DEF_MASK1 "control+alt"
#define DEF_MASK2 "alt"
#define DEF_ALTMASK "shift"
#define DEF_SOLIDDRAG 1
#define DEF_SOLIDSWEEP 0
#define DEF_DOCKS 1
#ifdef DEBIAN
#define DEF_TERM "x-terminal-emulator"
#else
#define DEF_TERM "xterm"
#endif
#ifndef VERSION
#define VERSION "?.?.?"
#endif
// Options
struct options {
// Display string (e.g., ":0")
char *display;
#ifdef FONT
// Text font
char *font;
#endif
// Border colours
char *fg; // selected (foreground)
char *bg; // unselected (background)
char *fc; // fixed & selected
// Border width
int bw;
// Number of virtual desktops
unsigned vdesks;
// Loop increment & vertical movement amount for vdesks
unsigned modvdesks;
// Snap to border distance
int snap;
// Default keyboard movement distance
int kbpx;
// multiplier when consecutive within 250ms
double quickmove;
int quickmovems;
// Whole screen flag (ignore monitor information)
int wholescreen;
// Solid drag & sweep enable flags
int solid_drag;
int solid_sweep;
// Initial dock state
int docks;
// disable loading the default key bindings
int nodefaultbinds;
// NULL-terminated array passed to execvp() to launch terminal
char **term;
};
extern struct options option;
extern unsigned numlockmask;
// Application matching
struct application {
char *res_name;
char *res_class;
char *WM_NAME;
int geometry_mask;
int x, y;
unsigned width, height;
#ifdef CONFIGREQ
int ignore_configreq;
#endif
int is_dock;
unsigned vdesk;
};
extern struct list *applications;