Last active
September 8, 2017 01:40
-
-
Save basyura/5ca2a73e694417d78a3541b1e4219098 to your computer and use it in GitHub Desktop.
keyhack.config.py
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
import sys | |
import os | |
import datetime | |
import pyauto | |
from keyhac import * | |
def configure(keymap): | |
############################### | |
# windows on VMware Fusion 用 # | |
############################## | |
keymap.replaceKey( "LWin", "LAlt" ) | |
keymap.replaceKey( "LAlt", "LWin" ) | |
# かな → 変換 | |
keymap.replaceKey( 255, 28) | |
# 英数 → 無変換 | |
keymap.replaceKey( 240, 29) | |
conemu = keymap.defineWindowKeymap( exe_name="ConEmu64.exe" ) | |
conemu["C-Period"] = "C-Tab" | |
conemu["C-Comma"] = "C-S-Tab" | |
########### | |
# 通常設定 # | |
########## | |
vs = keymap.defineWindowKeymap( exe_name="devenv.exe" ) | |
vs["C-j"] = "ESC", "29" | |
vs["C-N"] = "Down" | |
vs["C-P"] = "Up" | |
mintty = keymap.defineWindowKeymap( exe_name="mintty.exe" ) | |
mintty["C-j"] = "ESC", "29" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment