Coder Social home page Coder Social logo

Comments (1)

miozus avatar miozus commented on August 28, 2024
################################################################
#                        Hyper MouseKey                        #
################################################################
  - description: Hyper MouseKey
    manipulators:
    #==========================================================#
    # (  mouse wheel )  ->    ( desktop switch )               #
    #==========================================================#
    - description: 'mouse_wheel_up = ctrl + left (prev desktop)'
      type: basic
      from: { mouse_key: { vertical_wheel: -32 }, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
      to: [ { key_code: left_arrow , modifiers: [ left_control ] } ]
    - description: 'mouse_wheel_down = ctrl + right (next desktop)'
      type: basic
      from: { mouse_key: { vertical_wheel: 32 }, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
      to: [ { key_code: left_arrow , modifiers: [ left_control ] } ]

按住 capslock 同时滚动鼠标轮轴就可以左右切换桌面的实现.yml

思路这样,你试着模仿,复制和修改 capslock.json,然后测试(我没鼠标)

参考 karabiner:to.mouse-key

🤔 from.any

You can use from.any as follows.
These matches all key codes, consumer key codes or pointing buttons.
"any": "key_code"
"any": "consumer_key_code"
"any": "pointing_button"

但官网文档给出的输入按键,仅支持三种类型,所以这条路可能会失败。

from capslock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.