• macos下用karabiner实现preview翻半页


    其实我没找到翻半页的方式,只是搞了个方法多翻几行,来达到效果。
    配置文件目录:

    /Users/xxx/.config/karabiner/assets/complex_modifications
    

    新增一个my.json

    {
      "title": "my_key_map",
      "rules": [
        {
          "description": "my_key_map",
          "manipulators": [
            {
              "type": "basic",
              "conditions": [
                {
                  "bundle_identifiers": [
                    "^com\.apple\.Preview$"
                  ],
                  "type": "frontmost_application_if"
                }
              ],
              "from": {
                "key_code": "d"
              },
              "to": [
                {
                  "key_code": "up_arrow"
                },
                {
                  "key_code": "up_arrow"
                },
                {
                  "key_code": "up_arrow"
                },
                {
                  "key_code": "up_arrow"
                },
                {
                  "key_code": "up_arrow"
                }
              ]
            },
            {
              "type": "basic",
              "conditions": [
                {
                  "bundle_identifiers": [
                    "^com\.apple\.Preview$"
                  ],
                  "type": "frontmost_application_if"
                }
              ],
              "from": {
                "key_code": "f"
              },
              "to": [
                {
                  "key_code": "down_arrow"
                },
                {
                  "key_code": "down_arrow"
                },
                {
                  "key_code": "down_arrow"
                },
                {
                  "key_code": "down_arrow"
                },
                {
                  "key_code": "down_arrow"
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "u",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "left_arrow",
                  "modifiers": [
                    "command"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "y",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "left_arrow",
                  "modifiers": [
                    "command",
                    "shift"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "i",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "right_arrow",
                  "modifiers": [
                    "command"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "o",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "right_arrow",
                  "modifiers": [
                    "command",
                    "shift"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "comma",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "left_arrow",
                  "modifiers": [
                    "shift"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "period",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "right_arrow",
                  "modifiers": [
                    "shift"
                  ]
                }
              ]
            },
            {
              "type": "basic",
              "from": {
                "key_code": "d",
                "modifiers": {
                  "mandatory": [
                    "command"
                  ],
                  "optional": [
                    "any"
                  ]
                }
              },
              "to": [
                {
                  "key_code": "delete_or_backspace"
                }
              ]
            }
          ]
        }
      ]
    }
    

    然后在karabiner的设置中重新加载一下rule,remove再enable。

  • 相关阅读:
    /etc/sysconfig/network-scripts/ifcfg-eth0
    虚拟机不能上网
    VMware3种网络模式
    SecureCRT学习之道:用SecureCRT来上传和下载数据
    SecureCRT学习之道:SecureCRT 常用技巧
    SecureCRT学习之道:SecureCRT常用快捷键设置与字体设置方法
    CentOS7 编译安装LNMP
    提高PHP编程效率的方法
    基于CentOS 5.4搭建nginx+php+spawn-fcgi+mysql高性能php平台
    Linux系统部署规范v1.0
  • 原文地址:https://www.cnblogs.com/shanchuan/p/15315165.html
Copyright © 2020-2023  润新知