summaryrefslogtreecommitdiffhomepage
path: root/patch/keymodes.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-02 10:18:17 +0200
committerbakkeby <[email protected]>2020-06-02 10:18:17 +0200
commit4db0cd64439e80559c53e88521d706c2260ae533 (patch)
treed6e06406fd5ce7b4f5d29874d9dbbacd2924c41f /patch/keymodes.h
parentaf96d4c358b5a532f5d8f5be43ffe903f242d61e (diff)
downloaddwm-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.h21
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