Skip to content

Instantly share code, notes, and snippets.

@OKsign
Created July 12, 2018 06:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save OKsign/bf9f2f6d077fc42e72728acb5da29ee4 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_96</name>
<url type="shell">
osascript -e '
tell application "System Events"
keystroke "w" using option down
delay 1.5
key code 24
delay 1
key code 53
end tell
'
</url>
</vkopenurldef>
<item>
<name>My Key 96: Center Active Window with Middle Click Button ('MercuryMover' enabled)</name>
<identifier>My Key 96: Center Active Window with Middle Click Button ('MercuryMover' enabled)</identifier>
<!-- 'MercuryMover' settings > Move: Option + W -->
<autogen>
--KeyToKey--
PointingButton::MIDDLE,
KeyCode::VK_OPEN_URL_96,
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment