diff options
author | kitty piapiac <kcp@bsd.computer> | 2020-07-28 05:56:10 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2020-07-28 05:56:10 -0700 |
commit | ed17aeb7079b329ec3c7e66792484660bcf6b3ef (patch) | |
tree | 6117917ce833da64a9df91e0f4760d6a1b6f6027 /src/config.nim | |
parent | 679401626886be97a546f18d54a8d1842011f564 (diff) |
(。ヘ°) keybindings
initShortcutKeys -> TODO, rename to initKeybindings ?
they're not exactly shortcut keys but here i am commiting anyway
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/config.nim b/src/config.nim index 23bd093..bd7d6ae 100644 --- a/src/config.nim +++ b/src/config.nim @@ -1,11 +1,13 @@ -import types +import + types, + x11/[x, keysym] # settings, or something along those lines # currently unused const # default mod key, run xmodmap to see what the mod keys are on your current keyboard layout # Mod1 is alt and Mod4 is super - modifier* = "mod1" + modifier* = Mod1Mask # if it isn't obvious, hex values go here colours* = ( @@ -16,14 +18,14 @@ const # store keybindings here keybindings*: seq[Key] = @[ closeWindow.initKey( - keys = @["c"], - mods = @[modifier, "shift"]), + key = XK_c, + mods = modifier), nextWindow.initKey( - keys = @["tab"], - mods = @[modifier]), + key = XK_Tab, + mods = modifier), spawnCustom.initKey( - keys = @["return"], - mods = @[modifier], - "st")]
\ No newline at end of file + key = XK_Return, + mods = modifier, + command = "st")]
\ No newline at end of file |