diff options
| author | Abhinav Prasai <72694427+uint23@users.noreply.github.com> | 2025-06-29 00:53:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-29 00:53:12 +0100 |
| commit | c848f76bcb16670821296b85aead56acf8ae24b3 (patch) | |
| tree | 01bff8b8a0fe5550ccaa5f635c7565091c70285f /src/defs.h | |
| parent | cee1cc7aea5ed949fe05d1fb483b1402ced5961b (diff) | |
| parent | aeee7bd1187ff1654bf271011efd8e42e2bbe527 (diff) | |
Merge pull request #110 from elbachir-one/main
Refactor keybinding configuration and parsing logic
Diffstat (limited to 'src/defs.h')
| -rw-r--r-- | src/defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,6 +50,8 @@ "8" "\0"\ "9" "\0" +#define MAX_BINDS 256 + typedef enum { DRAG_NONE, DRAG_MOVE, DRAG_RESIZE, DRAG_SWAP } DragMode; typedef void (*EventHandler)(XEvent *); @@ -119,6 +121,11 @@ typedef struct { Bool enabled; } Scratchpad; +typedef struct { + const char *name; + void (*fn)(void); +} CommandEntry; + extern void centre_window(); extern void close_focused(void); extern void dec_gaps(void); |
