diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-28 21:24:59 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-28 21:24:59 +1200 |
| commit | 37a2725da41e363fcdca12d0374b192cd03905d0 (patch) | |
| tree | e2eaa5e14171987e7e06fca21b3d6d9253e80165 /util.h | |
| parent | 638c3ac10003f66ef4af43f50ee365c9036da0fe (diff) | |
| download | YATwm-37a2725da41e363fcdca12d0374b192cd03905d0.tar.gz YATwm-37a2725da41e363fcdca12d0374b192cd03905d0.zip | |
feat: Added key chording
Probably a hacky mess but oh well. Key chords can be done by
seperating binds in string with ` `. You can set the quit bind with
`quitkey`, default mod+g. (Chords also exited when pressing unbound keys).
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,8 @@ #include <string> #include <X11/Xlib.h> -#define evNames {0, 0, "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut", "KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify", "CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest", "ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify", "ResizeRequest", "CirculateNotify", "CirculateRequest", "PropertyNotify", "SelectionClear", "SelectionRequest", "SelectionNotify", "ColormapNotify", "ClientMessage", "MappingNotify", "GenericEvent", "LASTEvent"}; + +std::string getEventName(int e); std::vector<std::string> split (const std::string &s, char delim); |
