22
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MacでFnキーを押すとGyazoを起動する設定

Last updated at Posted at 2015-03-20

Macで特定キーを押すとアプリケーションを起動する設定のやり方。
Fnキーを押すとGyazoが起動する設定を例に説明する。

Gyazo

前提

karabiner をインストールしていること

やり方

~/Library/Application\ Support/Karabiner/private.xml にこのような設定を書く。

<?xml version="1.0"?>
<root>
  <vkopenurldef>
    <name>KeyCode::VK_OPEN_URL_GYAZO</name>
    <url type="file">/Applications/Gyazo.app</url>
  </vkopenurldef>

  <item>
    <name>fn to Gyazo</name>
    <identifier>remap.fn2gyazo</identifier>
    <autogen>
      --KeyToKey--
      KeyCode::FN,
      KeyCode::VK_OPEN_URL_GYAZO
    </autogen>
  </item>
</root>

karabinerの設定メニューを開いて「Reload XML」して、設定を有効にする。


22
22
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
22

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?