~kris/suckless

dwm

ref: c1e5f29af73533103a98ea642ce7cb7b02b92cc2 dwm/patch/keymodes.h -rw-r--r-- 515 bytes
c1e5f29a — Kris Yotam update border colors to Plan 9 palette, add fzfmenu rule, bind Mod+w/e/c to tome 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define COMMANDMODE             1
#define INSERTMODE              2

typedef struct {
	unsigned int mod[4];
	KeySym keysym[4];
	void (*func)(const Arg *);
	const Arg arg;
} Command;

static void clearcmd(const Arg *arg);
static void grabkeys(void);
static int isprotodel(Client *c);
static void keypress(XEvent *e);
static void onlyclient(const Arg *arg);
static void setkeymode(const Arg *arg);

/* variables */
static unsigned int cmdmod[4];
static unsigned int keymode = INSERTMODE;
static KeySym cmdkeysym[4];