-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrulemodes.h
88 lines (71 loc) · 2.53 KB
/
rulemodes.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
/* See LICENSE file for copyright and license details. */
#ifndef RULEMODES_H
#define RULEMODES_H
#include "datatypes.h"
#define SSWITCH(V) if (arg->i == -1) V = !V; else V = arg->i & 1
enum CustomNet { CusNetFocusChange, CusUsingCompositor, CusAttachBelow, CusAllowNextFloating,
CusShowOverlay, CusIgnoreMasterFocus, CusNumOfMaster, CusCursorWarp, CusInvisibleWindow,
CusBottomRightResizing, CusTagClick, CusKeymode, CusFocusPopup, CusFloatingVisible, CusWindowGap,
CusLast,}; /* custom atoms */
enum KeymodeType {
KeymodeNormal, /* normal behavior */
KeymodeControl, /* using every key without pressing the Mod button */
}; /* keymodes */
extern const Signal signals[];
extern int keymode;
/* this is where all the rulemodes are defined */
extern int allownextfloating;
extern int ignoremasterfocus;
extern int isattachbelow;
extern int iscompositoractive;
extern int iscursorwarp;
extern int showoverlay;
extern int switchonfocus;
extern int btrresizing;
extern int istagclick;
extern int focuspopup;
extern int floatingvisible;
extern int col_sel;
extern unsigned int snap;
extern /* unsigned */ int borderpx;
extern /* unsigned */ int gappx;
extern int showbar;
extern int topbar;
extern const long stf[2][1];
/* functions for the rulemodes.h */
void initcusatom(void);
void toggleattachbelow(const Arg *arg);
void togglealwaysontop(const Arg *arg);
void toggleallownextfloating(const Arg *arg);
void togglebtrresizing(const Arg *arg);
void togglecompositor(const Arg *arg);
void togglecursorwarp(const Arg *arg);
void toggleswitchonfocus(const Arg *arg);
void toggleoverlay(const Arg *arg);
void toggleignoremasterfocus(const Arg *arg);
void toggletagclick(const Arg *arg);
void togglefocuspopup(const Arg *arg);
void togglefloatingvisible(const Arg *arg);
void toggleforceinvisiblewindow(const Arg *arg);
void toggleallforceinvisible(const Arg *arg);
void killallfloatingwindow(const Arg *arg);
void setupcusatom(void);
int signalhandle(void);
/* functions for signals, nihwmctl */
void settopbar(const Arg *arg);
void setsnap(const Arg *arg);
void setgappx(const Arg *arg);
void setborderpx(const Arg *arg);
void setkeymode(const Arg *arg);
void updatekeymode(void);
/* constants */
extern const char *nihwmctl_kill_[];
extern const char *nihwmctl_start_[];
extern const char *nihwmctl_compo_kill_[];
extern const char *nihwmctl_compo_start_[];
extern char * const nihwm_reslist[];
extern const Arg nihwmctl_start;
extern const Arg nihwmctl_kill;
extern const Arg nihwmctl_compo_start;
extern const Arg nihwmctl_compo_kill;
#endif /* RULEMODES_H */