You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/input-remapper-tutorial.mdx
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ import Intro from '../../components/Intro.astro';
16
16
On Linux, you can use a tool called [Input Remapper](https://github.com/sezanzeb/input-remapper) to remap mouse buttons or controller buttons to keyboard shortcuts and open Kando menus this way!
17
17
</Intro>
18
18
19
+
<Asidetype="note">
20
+
This guide was originally written by [@ClixTW](https://github.com/ClixTW) on [GitHub](https://github.com/orgs/kando-menu/discussions/1183). If you have any questions, feel free to add a comment over there!
21
+
</Aside>
19
22
20
23
# Introduction
21
24
@@ -37,7 +40,7 @@ First, we will look at the simplest method of directly mapping a mouse button to
37
40
Then, we will explore how to trigger a menu with a long press of a mouse button while keeping the original function on tap.
38
41
Finally, we will see how to trigger a menu by holding one mouse button and tapping another.
39
42
40
-
<Asidetype="note"title="Note">
43
+
<Asidetype="note">
41
44
To demonstrate the most complex scenarios, the examples below use `Ctrl+Shift+F1` as the trigger. You can modify this to your preferred shortcut.
42
45
</Aside>
43
46
@@ -69,7 +72,7 @@ Then, in the output pane on the right, set the **type to "Key or Macro"** and th
The number `150` at the end represents the duration required for a long press in milliseconds. You can adjust this value, but setting it too short may lead to accidental triggers.
74
77
</Aside>
75
78
@@ -78,17 +81,21 @@ The number `150` at the end represents the duration required for a long press in
78
81
79
82
## Option 3: Combining Two Mouse Buttons
80
83
81
-
Triggered by holding one mouse button and tapping another. The following example uses **Hold Right Click + Tap Left Click**:
84
+
Triggered by holding the right mouse button and tapping the left.
85
+
Keep the right mouse button held and drag after the menu opens to engage in Marking Mode.
86
+
If you click left again while the menu is open, it will cycle through the different menus you have bound to `Ctrl+Shift+F1`.
87
+
88
+
Bind the following to the right mouse button with target type "keyboard + mouse":
82
89
83
90
```yaml
84
-
# Mouse Button RIGHT
85
-
# Target: keyboard + mouse
86
91
if_tap( key( BTN_RIGHT ), hold( KEY_LEFTCTRL ))
92
+
```
87
93
88
-
# Mouse Button LEFT
89
-
# Target: keyboard
94
+
Then, bind the following to the **left mouse button and the right mouse button** (press both simultaneously when recording) with target type "keyboard":
95
+
96
+
```yaml
90
97
KEY_LEFTCTRL + KEY_LEFTSHIFT + KEY_F1
91
98
```
92
99
93
-
-**Pros**: Allows you to hold Right Click and tap Left Click multiple times to quickly toggle between menus assigned to the same shortcut.
100
+
-**Pros**: Allows you to hold right click and tap left click multiple times to quickly toggle between menus assigned to the same shortcut.
94
101
-**Cons**: You lose the button's original hold function; holding and dragging will now interact with the Kando menu instead.
0 commit comments