diff options
author | kitty piapiac <kcp@bsd.computer> | 2020-07-29 05:24:02 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2020-07-29 05:24:02 -0700 |
commit | e0e6b6e04d8fcb6014028c70a52ff08ce8206d2f (patch) | |
tree | 609a22a8e6b201fbe2d2d9cbec7ddc53f04ecc00 /src/config.nim | |
parent | ed17aeb7079b329ec3c7e66792484660bcf6b3ef (diff) |
(・ω・)b key handlers
Diffstat (limited to 'src/config.nim')
-rw-r--r-- | src/config.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/config.nim b/src/config.nim index bd7d6ae..64ea31e 100644 --- a/src/config.nim +++ b/src/config.nim @@ -1,9 +1,6 @@ -import - types, - x11/[x, keysym] +import types, x11/x # 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 @@ -14,18 +11,21 @@ const focused: 0xFBFDFF, unfocused: 0x9BCDFF, background: 0x232323) + + # in pixels + frameWidth* = 2 # store keybindings here keybindings*: seq[Key] = @[ closeWindow.initKey( - key = XK_c, - mods = modifier), + key = "c", + mods = modifier or ShiftMask), # TODO: seq here instaed of x or y # currently XMask or YMask or ZMask nextWindow.initKey( - key = XK_Tab, + key = "Tab", mods = modifier), spawnCustom.initKey( - key = XK_Return, + key = "Return", mods = modifier, command = "st")]
\ No newline at end of file |