keymodes.h (515B)
1 #define COMMANDMODE 1 2 #define INSERTMODE 2 3 4 typedef struct { 5 unsigned int mod[4]; 6 KeySym keysym[4]; 7 void (*func)(const Arg *); 8 const Arg arg; 9 } Command; 10 11 static void clearcmd(const Arg *arg); 12 static void grabkeys(void); 13 static int isprotodel(Client *c); 14 static void keypress(XEvent *e); 15 static void onlyclient(const Arg *arg); 16 static void setkeymode(const Arg *arg); 17 18 /* variables */ 19 static unsigned int cmdmod[4]; 20 static unsigned int keymode = INSERTMODE; 21 static KeySym cmdkeysym[4]; 22