spmenu/mouse.h
2023-04-04 01:15:11 +02:00

29 lines
927 B
C

/* Mouse bindings
*
* This header contains mouse binds.
* Change them or remove them if you prefer. You can also add more if you want.
*
* clickwindow: - spmenu window/client
* clickinput: - Input box
* clickprompt: - Prompt
* clicklarrow: - Left arrow
* clickrarrow: - Right arrow
* clicknumber: - Match count
* clickmode: - Mode indicator
*
* Button1 - Left click
* Button2 - Middle click
* Button3 - Right click
* Button4 - Scroll up
* Button5 - Scroll down
*
* Note that clicking on an item will select it, as of now it's hardcoded.
*/
static Mouse buttons[] = {
{ clickinput, 0, Button1, clear, {0} },
{ clickprompt, 0, Button1, clear, {0} },
{ clickmode, 0, Button1, switchmode, {0} },
{ clicknumber, 0, Button1, viewhist, {0} },
};