Last active
December 25, 2015 20:39
-
-
Save khebbie/7037201 to your computer and use it in GitHub Desktop.
My keymando file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Keymando at login | |
# ----------------------------------------------------------- | |
# start_at_login | |
# Disable Keymando when using these applications | |
# ----------------------------------------------------------- | |
# disable "Remote Desktop Connection" | |
# disable /VirtualBox/ | |
# Basic mapping | |
# ----------------------------------------------------------- | |
# map "<Ctrl-[>", "<Escape>" | |
# map "<Ctrl-m>", "<Ctrl-F2>" | |
# Commands | |
# ----------------------------------------------------------- | |
start_at_login | |
# Command launcher window via Cmd-Space | |
map "<Cmd- >" do | |
trigger_item_with(Commands.items, RunRegisteredCommand.new) | |
end | |
except /iTerm/, "MacVim" do | |
map "<Ctrl-j>", "<Down>" | |
map "<Ctrl-k>", "<Up>" | |
map "<Ctrl-h>", "<Left>" | |
map "<Ctrl-l>", "<Right>" | |
end | |
map "<Cmd-Ctrl-Up>", Commands.window_move_to_full_screen | |
map "<Cmd-Ctrl-Down>", Commands.window_move_to_center | |
map "<Cmd-Ctrl-Left>", Commands.window_move_to_left | |
map "<Cmd-Ctrl-Right>", Commands.window_move_to_right | |
map "<Ctrl-Alt-Up>", Commands.volume_up | |
map "<Ctrl-Alt-Down>", Commands.volume_down | |
# Disable quiting for iTerm. Should only exit via command line | |
only /iTerm/ do | |
map "<Cmd-w>", nil | |
map "<Cmd-q>", nil | |
map "<Cmd-r>", nil | |
map "<Cmd-t>", nil | |
end | |
only /Twitter/ do | |
nmap "gg", "<home>" | |
nmap "G", "<end>" | |
nmap "<ctrl-d>", "<pagedown>" | |
nmap "<ctrl-u>", "<pageup>" | |
end | |
# Windows Mappings | |
# ----------------------------------------------------------- | |
# Editing | |
map "<Ctrl-c>", "<Cmd-c>" | |
map "<Ctrl-v>", "<Cmd-v>" | |
map "<Ctrl-x>", "<Cmd-x>" | |
map "<Ctrl-a>", "<Cmd-a>" | |
# Redo & Undo | |
map "<Ctrl-r>", "<Cmd-r>" | |
map "<Ctrl-z>", "<Cmd-z>" | |
# Back / Forward Arrow Nav | |
map "<Home>", "<Cmd-Left>" | |
map "<End>", "<Cmd-Right>" | |
command "Open Dropbox" do | |
system('open /Users/khebbie/Dropbox') | |
end | |
# Register commands | |
# ----------------------------------------------------------- | |
command "Volume Up" do | |
`osascript -e 'set volume output volume (output volume of (get volume settings) + 1)'` | |
end | |
command "Volume Down" do | |
`osascript -e 'set volume output volume (output volume of (get volume settings) - 1)'` | |
end | |
# Repeat last command via Cmd-. | |
map "<Cmd-.>", RunLastCommand.instance | |
# ----------------------------------------------------------- | |
# Visit http://keymando.com to see what else Keymando can do! | |
# ----------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment