キー三兄弟
https://gyazo.com/5a432cf5753e954ceb0069d0dbb5cde4
MacBook Airのキーを以下のように設定して使っている
Gyazoキー: キャプチャ開始
Scrapboxキー: Scrapboxで新規メモ作成
この三つはとても便利で毎日使ってる
以下のようなファイルを~/.config/karabiner/assets/complex_modifications に置く
code:scrapbox.json
{
"title": "左オプションキーでmemo起動",
"rules": [{
"description": "左オプションキーでmemo起動",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "left_option"
},
"to_if_alone": [{
"shell_command": "/Users/masui/bin/memo;"
}]
}]
}]
}
長押しで全スクリーンキャプチャ
code:gyazo.jcon
{
"title": "Fnキー単独でGyazo起動",
"rules": [{
"description": "Fnキー単独でGyazo起動",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "fn"
},
"to_if_alone": [{
"shell_command": "open /Applications/Gyazo.app;"
}],
"to_if_held_down": [{
"shell_command": "screencapture -D 1 -x -R0,24,2000,2000 /tmp/___screen.png; /Applications/Gyazo.app/Contents/MacOS/Gyazo /tmp/___screen.png"
}]
}]
}]
}
code:helpfeel.json
{
"title": "Controlで'/ 'を生成",
"rules": [
{
"description": "Controlで'/ 'を生成",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control"
},
"to": [
{
"key_code": "japanese_eisuu"
},
{
"key_code": "l",
},
{
"key_code": "slash"
},
{
"key_code": "spacebar"
}
]
}
]
}
]
}