You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
515 B
23 lines
515 B
3 years ago
|
#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];
|
||
|
|