From 0f7e320fa198ffebaaea98d142eabee25d8fdafb Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Mon, 10 Aug 2020 20:52:16 -0700 Subject: =?UTF-8?q?(/=E3=83=BB=E3=83=BB)=E3=83=8E=20better=20default=20con?= =?UTF-8?q?fig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.def.nim | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) (limited to 'src/config.def.nim') 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 -- cgit v1.2.3