2022-08-21 11:53:18 +02:00
|
|
|
/* 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'.
|
2022-09-03 16:46:19 +02:00
|
|
|
*
|
|
|
|
* To disable all mouse binds, edit toggle.h.
|
2022-08-21 11:53:18 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Actions when the mouse clicks a part of the screen */
|
2022-09-11 00:51:27 +02:00
|
|
|
static const Button buttons[] = {
|
2022-09-11 01:44:40 +02:00
|
|
|
/* 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} },
|
2022-10-11 14:01:22 +02:00
|
|
|
{ ClkClientWin, MODIFIER1|ControlMask, Button3, dragcfact, {0} },
|
|
|
|
{ ClkClientWin, MODIFIER1, Button3, dragmfact, {0} },
|
2022-09-11 01:44:40 +02:00
|
|
|
{ ClkStatusText, 0, Button1, spawn, {.v = statuscmd } },
|
|
|
|
{ ClkStatusText, 0, Button2, spawn, {.v = statuscmd } },
|
|
|
|
{ ClkStatusText, 0, Button3, spawn, {.v = statuscmd } },
|
|
|
|
{ ClkWinTitle, 0, Button1, togglewin, {0} },
|
2022-10-15 01:21:54 +02:00
|
|
|
{ ClkWinTitle, 0, Button3, spawn, cmd( "speedwm-utils" ) },
|
|
|
|
{ ClkRootWin, 0, Button3, spawn, cmd( RUN_DESKTOP ) },
|
2022-09-11 01:44:40 +02:00
|
|
|
{ ClkTagBar, 0, Button1, view, {0} },
|
2022-10-03 01:36:47 +02:00
|
|
|
{ ClkTagBar, 0, Button4, view, {0} },
|
|
|
|
{ ClkTagBar, 0, Button5, view, {0} },
|
2022-08-21 11:53:18 +02:00
|
|
|
};
|