41 lines
2.2 KiB
C
41 lines
2.2 KiB
C
/* Mouse bindings
|
|
*
|
|
* This header contains mouse binds.
|
|
* Change them, or remove them if you prefer. You can also add more if you want.
|
|
* Once you're done with your edits, run 'make clean install'.
|
|
*
|
|
* To disable all mouse binds, edit toggle.h.
|
|
*
|
|
* ClkLtSymbol - Layout icon
|
|
* ClkWinTitle - Window title
|
|
* ClkStatusText - Status text
|
|
* ClkRootWin - Root window (background)
|
|
* ClkTagBar - Tags
|
|
*
|
|
* Button1 - Left click
|
|
* Button2 - Middle click
|
|
* Button3 - Right click
|
|
*/
|
|
|
|
/* Actions when the mouse clicks a part of the screen */
|
|
static const Button buttons[] = {
|
|
/* click event mask button function argument */
|
|
{ ClkLtSymbol, 0, Button3, layoutmenu, {0} },
|
|
{ ClkLtSymbol, 0, Button1, cyclelayout, {.i = +1 } },
|
|
{ ClkLtSymbol, 0, Button2, cyclelayout, {.i = -1 } },
|
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
|
{ ClkClientWin, MODIFIER1, Button1, moveorplace, {.i = 1} },
|
|
{ ClkClientWin, MODIFIER1, Button2, togglefloating, {0} },
|
|
{ ClkClientWin, MODIFIER1|ControlMask, Button3, dragcfact, {0} },
|
|
{ ClkClientWin, MODIFIER1, Button3, dragmfact, {0} },
|
|
{ ClkStatusText, 0, Button1, spawn, {.v = statuscmd } },
|
|
{ ClkStatusText, 0, Button2, spawn, {.v = statuscmd } },
|
|
{ ClkStatusText, 0, Button3, spawn, {.v = statuscmd } },
|
|
{ ClkWinTitle, 0, Button1, togglewin, {0} },
|
|
{ ClkWinTitle, 0, Button3, spawn, cmd( "speedwm-utils" ) },
|
|
{ ClkRootWin, 0, Button3, spawn, cmd( RUN_DESKTOP ) },
|
|
{ ClkTagBar, 0, Button1, view, {0} },
|
|
{ ClkTagBar, 0, Button4, view, {0} },
|
|
{ ClkTagBar, 0, Button5, view, {0} },
|
|
};
|