From ed17aeb7079b329ec3c7e66792484660bcf6b3ef Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Tue, 28 Jul 2020 05:56:10 -0700 Subject: =?UTF-8?q?(=E3=80=82=E3=83=98=C2=B0)=20keybindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit initShortcutKeys -> TODO, rename to initKeybindings ? they're not exactly shortcut keys but here i am commiting anyway --- src/config.nim | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/config.nim') 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 -- cgit v1.2.3