Last active
June 26, 2019 17:26
keyhac config
This file contains hidden or 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
import pyauto | |
from keyhac import * | |
def configure(keymap): | |
def is_not_cygwin(window): | |
return window.getProcessName() != "mintty.exe" | |
keymap_emacs = keymap.defineWindowKeymap(check_func=is_not_cygwin) | |
keymap_emacs["LC-a"] = "Home" | |
keymap_emacs["LC-e"] = "End" | |
keymap_emacs["LC-p"] = "Up" | |
keymap_emacs["LC-n"] = "Down" | |
keymap_emacs["LC-f"] = "Right" | |
keymap_emacs["LC-b"] = "Left" | |
keymap_emacs["LC-h"] = "Back" | |
keymap_emacs["LC-d"] = "Delete" | |
keymap_emacs["LC-y"] = "RC-v" | |
keymap_emacs["LC-k"] = "S-End", "RC-x" | |
keymap_emacs["LC-t"] = "S-Right", "RC-x", "Left", "RC-v" | |
keymap_global = keymap.defineWindowKeymap() | |
keymap_global["BackSlash"] = "S-BackSlash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment