summaryrefslogtreecommitdiff
path: root/src/config.def.nim
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2020-08-10 20:52:16 -0700
committerkitty piapiac <kcp@bsd.computer>2020-08-10 20:52:16 -0700
commit0f7e320fa198ffebaaea98d142eabee25d8fdafb (patch)
tree6e85ea65c110fb8e0de88cd0b13521814d5d987e /src/config.def.nim
parent92baae67185f19c71c99134a06d5d42a43e83703 (diff)
(/・・)ノ better default config
Diffstat (limited to 'src/config.def.nim')
-rw-r--r--src/config.def.nim36
1 files changed, 6 insertions, 30 deletions
diff --git a/src/config.def.nim b/src/config.def.nim
index 39de9e5..c9f46f9 100644
--- a/src/config.def.nim
+++ b/src/config.def.nim
@@ -1,45 +1,21 @@
import objects, x11/x
-# config
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* = Mod1Mask
+ MOD* = Mod1Mask
+ SHIFT* = ShiftMask
- # if it isn't obvious, hex values go here
colours* = (
focused: "#fbfdff",
unfocused: "#295eb3",
background: "#232323")
- # in pixels
frameWidth* = 2
init* = [
"xsetroot -solid \"" & colours.background & "\""]
- # store keybindings here
keybindings* = [
- # alt + shift + q will close the focused window
- initKey( closeWindow,
- key = "q",
- mods = modifier or ShiftMask),
-
- # alt + tab will cycle the focus through the windows
- initKey(
- nextWindow,
- key = "Tab",
- mods = modifier),
-
- # alt + . will set the focused window to the master window
- initKey(
- setMaster,
- key = "period",
- mods = modifier),
-
- # alt + return will open st, you can replace this with whatever your preferred terminal is
- initKey(
- spawnCustom,
- key = "Return",
- mods = modifier,
- command = "st")] \ No newline at end of file
+ key( MOD or SHIFT, "q", closeWindow ), # alt + shift + q will close the focused window
+ key( MOD, "Tab", nextWindow ), # alt + tab will cycle the focus through the windows
+ key( MOD, "period", setMaster ), # alt + period will set the focused window to the master window
+ key( MOD, "Return", spawnCustom, "st")] # alt + return will open st, you can replace this with whatever your preferred terminal is \ No newline at end of file