Skip to content

Instantly share code, notes, and snippets.

@ignu
Created August 7, 2012 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignu/3286557 to your computer and use it in GitHub Desktop.
Save ignu/3286557 to your computer and use it in GitHub Desktop.
falling in love with keymando
map "<Cmd-Ctrl-p>" { Spotify.play_pause }
map "<Cmd-Ctrl-j>" { Spotify.next }
map "<Cmd-Ctrl-k>" { Spotify.previous }
map "<Cmd-Shift-m>" { activate("MacVim") }
map "<Cmd-Shift-b>" { activate("Google Chrome") }
only /iTerm/ do
map '<Cmd-w>', nil
map '<Cmd-q>', nil
map '<Cmd-r>', nil
map '<Cmd-t>', nil
map "<Cmd-Shift-r>" do
activate('Google Chrome')
sleep(1)
send('<Cmd-r>')
sleep(1)
activate('iTerm')
end
# Simplify copying buffer from tmux
map "<Cmd-x>" do
send("<Ctrl-Shift-B>Y")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment