diff options
| author | bakkeby <[email protected]> | 2020-06-02 10:18:17 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-06-02 10:18:17 +0200 |
| commit | 4db0cd64439e80559c53e88521d706c2260ae533 (patch) | |
| tree | d6e06406fd5ce7b4f5d29874d9dbbacd2924c41f /patch/keymodes.h | |
| parent | af96d4c358b5a532f5d8f5be43ffe903f242d61e (diff) | |
| download | dwm-flexipatch-4db0cd64439e80559c53e88521d706c2260ae533.tar.gz dwm-flexipatch-4db0cd64439e80559c53e88521d706c2260ae533.zip | |
An idea to remember to add keymodes patch files
Diffstat (limited to 'patch/keymodes.h')
| -rw-r--r-- | patch/keymodes.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patch/keymodes.h b/patch/keymodes.h new file mode 100644 index 0000000..3a13163 --- /dev/null +++ b/patch/keymodes.h @@ -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];
\ No newline at end of file |
