From 2f836248d51630182561b362f4f66d22fd7b311e Mon Sep 17 00:00:00 2001 From: tkna Date: Sun, 6 Nov 2022 14:30:54 +0900 Subject: [PATCH] Update documentation: Binding Related - Change reference to `keyd -e` to `keyd bind - Add [reset] to COMMANDS:bind - Add Describe the conditions of that can be used to *Bindings* --- docs/keyd-application-mapper.scdoc | 2 +- docs/keyd.scdoc | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/keyd-application-mapper.scdoc b/docs/keyd-application-mapper.scdoc index 85ec4f1..1925472 100644 --- a/docs/keyd-application-mapper.scdoc +++ b/docs/keyd-application-mapper.scdoc @@ -27,7 +27,7 @@ Where __ has one of the following forms: \[\] # Match by window class \[|\] # Match by class and title -and each _<expression>_ is a valid argument to _-e_ (see *Expressions*). +and each _<expression>_ is a valid argument to _keyd bind_ (see *Bindings*). _<class exp>_ and _<title exp>_ are strings which describe window class and title names to be matched, and may optionally contain unix style wildcards (\*). For example, diff --git a/docs/keyd.scdoc b/docs/keyd.scdoc index 1c5f88e..5eb68dc 100644 --- a/docs/keyd.scdoc +++ b/docs/keyd.scdoc @@ -16,7 +16,7 @@ keyd(1) *listen* Print layer state changes of the running keyd daemon to stdout. Useful for scripting. -*bind <binding> [<binding>...]* +*bind <binding> [reset] [<binding>...]* Apply the supplied bindings. See _Bindings_ for details. *reload* @@ -733,6 +733,14 @@ The _bind_ command accepts one or more _bindings_, each of which must have the f \[<layer>.\]<key> = <key>|<macro>|<action> Where _<layer>_ is the name of an (existing) layer in which the key is to be bound. +Available are user-configured layers and the following, default layers: + + *main* - main layer++ +*control* - Control++ +*meta* - Meta/Super++ +*alt* - Alt++ +*shift* - Shift++ +*altgr* - AltGr As a special case, the string "reset" may be used in place of a binding, in which case the current keymap will revert to its original state (all