This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
121 lines (97 loc) · 3.7 KB
/
config.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifndef CONFIG_H
#define CONFIG_H
#include <X11/keysym.h>
#include <X11/XKBlib.h>
#include "src/key.h"
#include "src/client.h"
#include "src/tags.h"
#include "src/focus.h"
#include "src/rules.h"
#include "src/dwindle.h"
/* size of the master window. Range -> [0.05, 0.95] */
extern float mratio;
/* no. of windows in the master area */
extern unsigned int nmaster;
/* margin */
extern unsigned int margin_top;
extern unsigned int margin_right;
extern unsigned int margin_bottom;
extern unsigned int margin_left;
/* gap between 2 windows */
extern unsigned int gap;
/* Border around windows */
static const char focused_border_color[] = "#7ea89e";
static const char normal_border_color[] = "#10151a";
static const unsigned int border_width = 0;
static const Rule rules[] = {
/* xprop:
* WM_CLASS(STRING) = class
* WM_NAME(STRING) = title
*/
/* class title isfloating isfullscreen */
{"Gcolor3", NULL, 1, 0 },
{"mpv", NULL, 0, 1 },
};
#define DWINDLE 0
#define MIRROR_DWINDLE 1
#define FLOATING 2
/* Mod4Mask -> super key
* Mod1Mask -> Alt key
* ControlMask -> control key
* ShiftMask -> shift key
*/
/* modifier key */
static const unsigned int MODKEY = Mod4Mask;
static const Key keys[] = {
/* quit devoidwm */
{MODKEY|ShiftMask, XK_q, quit, {0}},
/* focus the next/prev window */
{MODKEY, XK_j, focus_adjacent, {.i = 1}},
{MODKEY, XK_k, focus_adjacent, {.i = -1}},
/* swap slave window with the master window */
{MODKEY, XK_space, zoom, {0}},
/* kill a window */
{MODKEY, XK_x, killclient, {0}},
/* toggle fullscreen */
{MODKEY|ShiftMask, XK_f, togglefullscr, {0}},
/* change the size of the master window */
{MODKEY, XK_h, setmratio, {.f = -0.05}},
{MODKEY, XK_l, setmratio, {.f = 0.05}},
/* increment/decrement no. of windows in master area */
{MODKEY, XK_i, incmaster, {.i = 1}},
{MODKEY, XK_d, incmaster, {.i = -1}},
{MODKEY, XK_0, view, {.ui = (1 << 9) - 1}},
{MODKEY, XK_1, view, {.ui = 1 << 0}},
{MODKEY, XK_2, view, {.ui = 1 << 1}},
{MODKEY, XK_3, view, {.ui = 1 << 2}},
{MODKEY, XK_4, view, {.ui = 1 << 3}},
{MODKEY, XK_5, view, {.ui = 1 << 4}},
{MODKEY, XK_6, view, {.ui = 1 << 5}},
{MODKEY, XK_7, view, {.ui = 1 << 6}},
{MODKEY, XK_8, view, {.ui = 1 << 7}},
{MODKEY, XK_9, view, {.ui = 1 << 8}},
{MODKEY|ControlMask, XK_0, toggletag, {.ui = (1 << 9) - 1}},
{MODKEY|ControlMask, XK_1, toggletag, {.ui = 1 << 0}},
{MODKEY|ControlMask, XK_2, toggletag, {.ui = 1 << 1}},
{MODKEY|ControlMask, XK_3, toggletag, {.ui = 1 << 2}},
{MODKEY|ControlMask, XK_4, toggletag, {.ui = 1 << 3}},
{MODKEY|ControlMask, XK_5, toggletag, {.ui = 1 << 4}},
{MODKEY|ControlMask, XK_6, toggletag, {.ui = 1 << 5}},
{MODKEY|ControlMask, XK_7, toggletag, {.ui = 1 << 6}},
{MODKEY|ControlMask, XK_8, toggletag, {.ui = 1 << 7}},
{MODKEY|ControlMask, XK_9, toggletag, {.ui = 1 << 8}},
{MODKEY|ShiftMask, XK_0, tag, {.ui = (1 << 9) - 1}},
{MODKEY|ShiftMask, XK_1, tag, {.ui = 1 << 0}},
{MODKEY|ShiftMask, XK_2, tag, {.ui = 1 << 1}},
{MODKEY|ShiftMask, XK_3, tag, {.ui = 1 << 2}},
{MODKEY|ShiftMask, XK_4, tag, {.ui = 1 << 3}},
{MODKEY|ShiftMask, XK_5, tag, {.ui = 1 << 4}},
{MODKEY|ShiftMask, XK_6, tag, {.ui = 1 << 5}},
{MODKEY|ShiftMask, XK_7, tag, {.ui = 1 << 6}},
{MODKEY|ShiftMask, XK_8, tag, {.ui = 1 << 7}},
{MODKEY|ShiftMask, XK_9, tag, {.ui = 1 << 8}},
{MODKEY|ControlMask, XK_d, setlayout, {.ui = DWINDLE}},
{MODKEY|ControlMask, XK_m, setlayout, {.ui = MIRROR_DWINDLE}},
{MODKEY|ControlMask, XK_f, setlayout, {.ui = FLOATING}},
};
#endif