Created
April 7, 2011 21:55
-
-
Save developwithpassion/908833 to your computer and use it in GitHub Desktop.
Current vikingrc 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
require '~/viking_develop_with_passion.rb' | |
# Ignore the following apps | |
disable "Remote Desktop Connection" | |
disable /VirtualBox/ | |
#---------------------------------------- | |
#core_shortcuts | |
#---------------------------------------- | |
toggle "<Cmd-Shift-E>" | |
map "<Cmd-d>" { application_previous } | |
map "<Cmd-e>", "<Escape>" | |
map "<Cmd-f>" { application_next } | |
map "<Cmd-h>", "<Left>" | |
map "<Cmd-j>", "<Down>" | |
map "<Cmd-k>", "<Up>" | |
map "<Cmd-l>", "<Right>" | |
map "<Cmd-m>", "<Tab>" | |
map "<Cmd-r>" { right_click } | |
#end_core_shortcuts--------------------- | |
@mappings = { | |
#window_management----------------------------------- | |
"th" => send_keys("<Ctrl-1>","window_top_left"), | |
"th" => send_keys("<Ctrl-1>","window_top_left"), | |
"tl" => send_keys("<Ctrl-2>", "window_top_right"), | |
"bh" => send_keys("<Ctrl-3>", "window_bottom_left"), | |
"bl" => send_keys("<Ctrl-4>", "window_bottom_right"), | |
"h" => send_keys("<Ctrl-5>", "window_left"), | |
"j" => send_keys("<Ctrl-8>", "window_top"), | |
"k" => send_keys("<Ctrl-7>", "window_bottom"), | |
"l" => send_keys("<Ctrl-6>", "window_right"), | |
"f" => send_keys("<Ctrl-9>", "window_full_screen"), | |
"c" => send_keys("<Ctrl-0>", "window_center"), | |
#end_window_management----------------------------------- | |
#general------------------------------------------------- | |
"rel" => reload_configuration, | |
"ls" => lock_the_screen, | |
"x" => send_keys("<Cmd-q>", "Quit current application"), | |
#end_general------------------------------------------------- | |
#quicksilver------------------------------------------------- | |
"mi" => send_keys("<Cmd-Shift-U>","Show Current App Menu Items"), | |
"w" => send_keys("<Cmd-]>", "Show Current App Windows"), | |
"qbt" => command(lambda{ | |
send("<Cmd- >") | |
send("Browse Tracks") | |
send("<Right>") | |
},"Browse Tracks"), | |
#end_quicksilver------------------------------------------------- | |
#mail------------------------------------------------------------ | |
"msn" => send_keys("<Shift-Tab>" * 6,"Send new mail"), | |
"msr" => send_keys("<Shift-Tab>" * 5,"Send reply mail"), | |
"mdn" => send_keys("<Shift-Tab>" * 4,"Discard new mail"), | |
"mdr" => send_keys("<Shift-Tab>" * 3,"Discard reply mail"), | |
"sr" => send_keys("<Cmd-Shift-2>","Stop screenflow recording") | |
#end_mail-------------------------------------------------------- | |
} | |
#mnemonics------------------------------------------------------------ | |
map "<Cmd-y>" do | |
input(@mappings) | |
end | |
#end_mnemonics-------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment