diff options
Diffstat (limited to 'src/keys.nim')
-rw-r--r-- | src/keys.nim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/keys.nim b/src/keys.nim new file mode 100644 index 0000000..bfe79aa --- /dev/null +++ b/src/keys.nim @@ -0,0 +1,18 @@ +type + KeyFunc* = enum + closeWindow, + nextWindow, + spawnCustom + + Key* = object + mods*: cuint + key*: string + keyfunc*: KeyFunc + command*: string + +proc initKey* (keyfunc: KeyFunc, mods: cuint, key: string, command = ""): Key = + return Key( + mods: mods, + key: key, + command: command, + keyfunc: keyfunc)
\ No newline at end of file |