spmenu-wiki/articles/Configurable keybindings.md

222 lines
2.9 KiB
Markdown
Raw Normal View History

2023-05-09 19:37:40 +02:00
Configurable keybindings
========================
spmenu has since version 1.0 supported configuring keybinds and mouse binds
through a config file. The default config file *should* have the default
keybinds already.
### List of valid modes
**Can be used with keybinds**
- `-1`
- Any mode
- `0`
- Normal mode
- `1`
- Insert mode
### List of valid clicks
**Can be used with mouse binds**
- `ClickWindow`
- Clicking on the spmenu window
- `ClickPrompt`
- Clicking on the prompt
- `ClickInput`
- Clicking on the input
- `ClickLArrow`
- Clicking on the left arrow
- `ClickRArrow`
- Clicking on the right arrow
- `ClickItem`
- Clicking on the item area
- `ClickSelItem`
- Clicking on an item, function here doesn't matter, it will always be selected
- `ClickImage`
- Clicking on an image
- `ClickNumber`
- Clicking on the match count indicator
- `ClickCaps`
- Clicking on the caps lock indicator
- `ClickMode`
- Clicking on the mode indicator
2023-07-14 21:32:37 +02:00
- `None`
- Any click
### List of valid modifiers
**Can be used with keybinds**
- `Ctrl`
- `Shift`
- `Super`
- `Alt`
- `None`
2023-05-09 19:37:40 +02:00
These can also be combined by using '+' as a separator (ie. Ctrl+Shift)
### List of valid buttons
**Can be used with mouse binds**
2023-05-09 19:37:40 +02:00
- Left Click
- Middle Click
- Right Click
- Scroll Up
- Scroll Down
### List of valid functions
2023-05-09 19:37:40 +02:00
**Can be used with keybinds and mouse binds**
2023-05-09 19:37:40 +02:00
- `moveup`
- `movedown`
- `moveleft`
- `moveright`
- `moveend`
- `movestart`
- `movenext`
- `moveprev`
- `moveitem`
- `paste`
- `restoresel`
- `clear`
- `clearins`
- `viewhist`
- `moveword`
- `deleteword`
- `movecursor`
- `navhistory`
- `backspace`
- `selectitem`
- `quit`
- `complete`
- `setimgsize`
- `toggleimg`
- `defaultimg`
- `flipimg`
- `setimgpos`
- `setimggaps`
- `setlines`
- `setcolumns`
- `togglehighlight`
2023-07-06 22:04:55 +02:00
- `toggleregex`
- `setprofile`
- `switchmode`
- `screenshot`
2023-05-09 19:37:40 +02:00
# List of valid arguments
2023-05-09 19:37:40 +02:00
**Can be used with both keybinds and mouse binds**
2023-05-09 19:37:40 +02:00
- `0`
- `1` through `100`
- `+1` through `+100`
- `-1` through `-100`
2023-05-09 19:37:40 +02:00
# List of valid keys
**Can be used with keybinds**
- `None`
- `Space`
- `Enter`
- `Tab`
- `a`
- `b`
- `c`
- `d`
- `e`
- `f`
- `g`
- `h`
- `i`
- `j`
- `k`
- `l`
- `m`
- `n`
- `o`
- `p`
- `q`
- `r`
- `s`
- `t`
- `u`
- `v`
- `w`
- `x`
- `y`
- `z`
- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`
- `7`
- `8`
- `9`
- `!`
- `"`
- `#`
- `$`
- `%`
- `&`
- `'`
- `(`
- `)`
- `*`
- `+`
- `,`
- `-`
- `.`
- `/`
- `:`
- `;`
- `<`
- `=`
- `>`
- `?`
- `@`
- `[`
- `\\`
- `]`
- `_`
- `grave`
- `{`
- `bar`
- `}`
- `~`
- `F1`
- `F2`
- `F3`
- `F4`
- `F5`
- `F6`
- `F7`
- `F8`
- `F9`
- `F10`
- `F11`
- `F12`
- `PageUp`
- `PageDown`
- `Home`
- `End`
- `Delete`
- `PrintScr`
- `Esc`
- `Pause`
- `ScrollLock`
- `Backspace`
- `Up`
- `Down`
- `Left`
- `Right`
- `Next`
- `Prior`