From e5bab1afd979a462a6663c1839232d9b70ce93bb Mon Sep 17 00:00:00 2001 From: Calvin Date: Sat, 8 Feb 2014 18:30:01 -0500 Subject: udpate make and seperate keys --- hotkey.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'hotkey.c') diff --git a/hotkey.c b/hotkey.c index 7978baf..27051e8 100644 --- a/hotkey.c +++ b/hotkey.c @@ -1,11 +1,11 @@ #include #include #include -#include #include #include #include + #define len(X) (sizeof X / sizeof X[0]) typedef struct { @@ -14,11 +14,7 @@ typedef struct { KeySym key; } Key; -static const Key hotkeys[] = { - //"Command MOD Key - { "svte &", Mod1Mask, XK_g }, - { "svte -e mocp &", ShiftMask|ControlMask, XK_y } -}; +#include "keys.h" int main() { Display* dpy = XOpenDisplay(0); @@ -30,7 +26,7 @@ int main() { } XSelectInput(dpy, root, KeyPressMask ); - while(true) { + while(1) { XEvent ev; XNextEvent(dpy, &ev); -- cgit v1.2.3