diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-17 00:11:53 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-17 00:11:53 +0530 |
| commit | c8549d08725f654870f25a2c837ab7fdb470c7f6 (patch) | |
| tree | 8433ecf3bdaaa763852b22b4f5f713b50bf317a9 | |
| parent | ede2f9fcacede3201fb3db8b0d38717ddad7c1b7 (diff) | |
| download | shotkey-c8549d08725f654870f25a2c837ab7fdb470c7f6.tar.gz shotkey-c8549d08725f654870f25a2c837ab7fdb470c7f6.zip | |
docs and shiz
Diffstat (limited to '')
| -rw-r--r-- | TODO.md | 3 | ||||
| -rw-r--r-- | config.h | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -1,6 +1,7 @@ # TODO - [ ] Some magic helpers for clean config - - [ ] Add modes + - [X] Add modes + - [ ] Abstract normal mode as just another mode - [ ] Get current mode from cli - [ ] KeyPress and KeyRelease options - [ ] Document stuff @@ -5,14 +5,20 @@ static char shell[] = "sh"; enum { Music, -MODE_SIZE }; -static Key modes[MODE_SIZE][5] = { + // Declare modes above this + MODE_SIZE, // NOTE: Do not remove this +}; + +// Define mode key bindings here +// NOTE: "10" here is the maximum number of key bindings for each mode +static Key modes[MODE_SIZE][10] = { [Music] = { { MOD|ShiftMask, XK_m, cmd("notify-send inside") }, }, }; +// Define normal mode key bindings here static Key keys[] = { { MOD|ShiftMask, XK_y, cmd("notify-send hello") }, { MOD|ShiftMask, XK_z, mode(Music) }, |
