diff options
author | Teddy Wing | 2018-11-08 17:05:28 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-08 17:05:28 +0100 |
commit | af35d0ef7d327144639a7ab5d9e29031d2e9177b (patch) | |
tree | 1ad95bb3eeed6f3cdd624da24b80098f45dfb637 | |
parent | 6e061780be4a5c0f2543d314f37cb25601d4b286 (diff) | |
download | dome-key-web-af35d0ef7d327144639a7ab5d9e29031d2e9177b.tar.bz2 |
Add a few mapping examples
-rw-r--r-- | index.html | 37 |
1 files changed, 36 insertions, 1 deletions
@@ -16,13 +16,48 @@ </header> <div class="content"> + <p> + DomeKey lets you customise headphone buttons + </p> + <h2>Install</h2> <div class="code code-block"> <span class="color-murky-pond">$</span> brew install teddywing/DomeKey/dome-key </div> + <h2>Examples</h2> + + <p>Video controls:</p> + <pre class="code code-block"> +map <Up> <Left> +map <Play> <Space> +map <Down> <Right></pre> + + <p>Preserve volume buttons and include video controls in a mode:</p> + <pre class="code code-block"> +# Don't launch iTunes when pressing the middle button +map <Play> <Nop> + +mode <Play><Play> { + map <Up> <Left> + map <Play> <Space> + map <Down> <Right> +}</pre> + + <p>Application switcher:</p> + <pre class="code code-block"> +map <Up> <D-S-Tab> +map <Down> <D-Tab></pre> + + <p>Open frequently used applications:</p> + <pre class="code code-block"> +cmd <Up> open -a Terminal +cmd <Play> open -a Xcode +cmd <Down> open -a Firefox</pre> - DomeKey lets you customise headphone buttons + <p>Open Terminal window #2:</p> + <pre class="code code-block"> +cmd <Play> osascript -e 'activate application "Terminal"' -e 'tell application "System Events" to keystroke "2" using command down'</pre> </div> </body> </html> |