summaryrefslogtreecommitdiff
path: root/src/config.def.nim
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2020-07-31 04:39:41 -0700
committerkitty piapiac <kcp@bsd.computer>2020-07-31 04:39:41 -0700
commite44f1b2355c61c2c8c7930f5c4b879bf55ec31a3 (patch)
tree65cbc59db9799c9ca2c10627527f73b96cea21d4 /src/config.def.nim
parent6749e8b5c77cc1f8884dada564d6290e1b9860fd (diff)
(/・・)ノ closes windows
- small bugfix - updated readme.md to include config section - updated .gitignore to ignore config.nim - added config.def.nim
Diffstat (limited to 'src/config.def.nim')
-rw-r--r--src/config.def.nim40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/config.def.nim b/src/config.def.nim
new file mode 100644
index 0000000..638b04b
--- /dev/null
+++ b/src/config.def.nim
@@ -0,0 +1,40 @@
+import /keys, x11/x
+
+# settings, or something along those lines
+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
+
+ # if it isn't obvious, hex values go here
+ colours* = (
+ focused: "#fbfdff",
+ unfocused: "#295eb3",
+ background: "#232323")
+
+ init* = @[
+ "xsetroot -solid \"" & colours.background & "\""]
+
+ # in pixels
+ frameWidth* = 2
+
+ # store keybindings here
+ keybindings*: seq[Key] = @[
+ # 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 + 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