Skip to content

Instantly share code, notes, and snippets.

@basyura
Last active September 8, 2017 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basyura/5ca2a73e694417d78a3541b1e4219098 to your computer and use it in GitHub Desktop.
Save basyura/5ca2a73e694417d78a3541b1e4219098 to your computer and use it in GitHub Desktop.
keyhack.config.py
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