summaryrefslogtreecommitdiff
path: root/readme.org
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-28 21:24:59 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-28 21:24:59 +1200
commit37a2725da41e363fcdca12d0374b192cd03905d0 (patch)
treee2eaa5e14171987e7e06fca21b3d6d9253e80165 /readme.org
parent638c3ac10003f66ef4af43f50ee365c9036da0fe (diff)
downloadYATwm-37a2725da41e363fcdca12d0374b192cd03905d0.tar.gz
YATwm-37a2725da41e363fcdca12d0374b192cd03905d0.zip
feat: Added key chording
Probably a hacky mess but oh well. Key chords can be done by seperating binds in string with ` `. You can set the quit bind with `quitkey`, default mod+g. (Chords also exited when pressing unbound keys).
Diffstat (limited to 'readme.org')
-rw-r--r--readme.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/readme.org b/readme.org
index 82863b9..b8b6a6b 100644
--- a/readme.org
+++ b/readme.org
@@ -63,8 +63,10 @@ The config file is a list of commands. Each command should be on a new line. For
- String: The name of the workspace
- Number array rest: The monitor preferences. This is which monitor it should appear on, first (primary) monitor is one. E.g. ~2 1~ to appear on the second monitor first, but if that isn't plugged in then use the first.
- bind: Binds a key to a command
- - String: The key bind, modifiers and keys are separated with +, e.g. ~mod+x~
+ - String: The key bind, modifiers and keys are separated with +, e.g. ~mod+x~. This can also be a key chord, where you have multiple binds, where when pressed in succession will execute the command (make sure to enclose this arg in quotes, and then separate the binds with spaces)
- String rest: The command to run
+- quitkey: Sets the key to exit a key chord (note: pressing an unbound key also does this)
+ - String: The key bind, modifiers and keys are separated with +, e.g. ~mod+g~.
- wsDump: This is a command for testing, you probably don't want to use it
*** General
You can change either the inner gaps (padding around each window - so double it for space between windows), or the outer gaps (padding around the display - add to inner gaps to get space between window and screen edges).
@@ -104,6 +106,7 @@ Current keybinds (these can all be edited):
- ~mod + f~ : toggle fullscreen
- ~mod + (num)~ : switch to workspace (num) - currently only for 1-10 but you can add more
- ~mod + shift + (num)~ : move window to workspace (num) - currently only for 1-10 but you can add more
+- ~mod + g~ : exit key chord
(mod is super, and the direction keys are h, j, k, l - left, down, up, right respectively like vim)
You can use the command ~swapmods~ to make ~mod~ act as ~alt~ and ~alt~ act as ~mod~.