Skip to content

Commit df1f447

Browse files
committed
📝 Add some more input-remapper info
1 parent a5d3360 commit df1f447

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

src/content/docs/input-remapper-tutorial.mdx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import Intro from '../../components/Intro.astro';
1616
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!
1717
</Intro>
1818

19+
<Aside type="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>
1922

2023
# Introduction
2124

@@ -37,7 +40,7 @@ First, we will look at the simplest method of directly mapping a mouse button to
3740
Then, we will explore how to trigger a menu with a long press of a mouse button while keeping the original function on tap.
3841
Finally, we will see how to trigger a menu by holding one mouse button and tapping another.
3942

40-
<Aside type="note" title="Note">
43+
<Aside type="note">
4144
To demonstrate the most complex scenarios, the examples below use `Ctrl+Shift+F1` as the trigger. You can modify this to your preferred shortcut.
4245
</Aside>
4346

@@ -69,7 +72,7 @@ Then, in the output pane on the right, set the **type to "Key or Macro"** and th
6972
if_tap( key( BTN_RIGHT ), modify( KEY_LEFTCTRL, modify( KEY_LEFTSHIFT, key (KEY_F1 ))).wait( 100 ).hold( KEY_LEFTCTRL ), 150 )
7073
```
7174

72-
<Aside type="tip" title="Tip">
75+
<Aside type="tip">
7376
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.
7477
</Aside>
7578

@@ -78,17 +81,21 @@ The number `150` at the end represents the duration required for a long press in
7881

7982
## Option 3: Combining Two Mouse Buttons
8083

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":
8289

8390
```yaml
84-
# Mouse Button RIGHT
85-
# Target: keyboard + mouse
8691
if_tap( key( BTN_RIGHT ), hold( KEY_LEFTCTRL ))
92+
```
8793

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
9097
KEY_LEFTCTRL + KEY_LEFTSHIFT + KEY_F1
9198
```
9299

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.
94101
- **Cons**: You lose the button's original hold function; holding and dragging will now interact with the Kando menu instead.

0 commit comments

Comments
 (0)