Skip to content

Commit c61b270

Browse files
committed
docs: add doc about modifier in simlayers
1 parent b9cc26e commit c61b270

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. This change
99

1010
*** Added
1111
- support ~:modi~ in ~:simlayers~
12+
check [[https://github.com/yqrashawn/GokuRakuJoudo/blob/master/examples.org#using-a-regular-key-as-a-modifier-key][last example of this section for using modifiers in simlayers]]
1213

1314
[commits in 0.5.0]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.4.1...v0.5.0
1415

examples.org

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,25 @@ below config works as well
148148
[:x [:alf "killProcess" "com.ngreenstein.alfred-process-killer"]]]}]}
149149
#+end_src
150150

151+
use ~left_control+w~ as simlayer key
152+
#+begin_src clojure
153+
{:templates {:open "open \"%s\""
154+
:alfred "osascript -e 'tell application \"Alfred 3\" to run trigger \"%s\" in workflow \"%s\" with argument \"%s\"'"}
155+
:layers {:alfred-layer {:key :z}}
156+
:simlayers {:launch-mode {:key :w
157+
;; can omit the vector if only one modifier is used
158+
;; :modi {:mandatory :left_control}
159+
:modi {:mandatory [:left_control]}}}
160+
:main [{:des "character key as modifier key rules"
161+
:rules [:launch-mode
162+
;; lctrl down and w+k run shell script "open /Applications/Emacs.app"
163+
[:k [:open "/Applications/Emacs.app"]]
164+
[:l [:open "/Applications/Google Chrome.app"]]
165+
:alfred-mode ;; all conditions works this way
166+
[:h [:alf "search repos" "me.lachlan.githubjump"]]
167+
[:x [:alf "killProcess" "com.ngreenstein.alfred-process-killer"]]]}]}
168+
#+end_src
169+
151170
** custom variable
152171

153172
#+begin_src clojure

0 commit comments

Comments
 (0)