diff options
-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> |