An idea to remember to add keymodes patch files

This commit is contained in:
bakkeby
2020-06-02 10:18:17 +02:00
parent af96d4c358
commit 4db0cd6443
2 changed files with 164 additions and 0 deletions

21
patch/keymodes.h Normal file
View File

@ -0,0 +1,21 @@
#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];