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-10-20 15:29:43 +02:00
|
|
|
*
|
2022-12-30 15:05:50 +01:00
|
|
|
* clicklayout - Layout icon
|
|
|
|
* clicktitle - Window title
|
|
|
|
* clickstatusbar - Status text
|
|
|
|
* clickroot - Root window (background)
|
|
|
|
* clicktags - Tags
|
|
|
|
* clickclient - Window
|
2022-10-20 15:29:43 +02:00
|
|
|
*
|
|
|
|
* Button1 - Left click
|
|
|
|
* Button2 - Middle click
|
|
|
|
* Button3 - Right click
|
2022-12-18 20:40:23 +01:00
|
|
|
* Button4 - Scroll up
|
|
|
|
* Button5 - Scroll down
|
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-12-30 15:05:50 +01:00
|
|
|
/* click event mask button function argument */
|
|
|
|
{ clicklayout, 0, Button2, spawn, cmd( "speedwm-utils layout" ) },
|
|
|
|
{ clicklayout, 0, Button1, cyclelayout, {.i = +1 } },
|
|
|
|
{ clicklayout, 0, Button3, cyclelayout, {.i = -1 } },
|
|
|
|
{ clicklayout, 0, Button4, cyclelayout, {.i = +1 } },
|
|
|
|
{ clicklayout, 0, Button5, cyclelayout, {.i = -1 } },
|
|
|
|
{ clicktitle, 0, Button2, zoom, {0} },
|
|
|
|
{ clickclient, MODIFIER1, Button1, moveorplace, {.i = 1} },
|
|
|
|
{ clickclient, MODIFIER1, Button2, togglefloating, {0} },
|
|
|
|
{ clickclient, MODIFIER1|ControlMask, Button3, dragcfact, {0} },
|
|
|
|
{ clickclient, MODIFIER1, Button3, dragmfact, {0} },
|
|
|
|
{ clickstatusbar, 0, Button1, spawn, {.v = clickstatus } },
|
|
|
|
{ clickstatusbar, 0, Button2, spawn, {.v = clickstatus } },
|
|
|
|
{ clickstatusbar, 0, Button3, spawn, {.v = clickstatus } },
|
|
|
|
{ clicktitle, 0, Button3, spawn, cmd( "speedwm-utils" ) },
|
|
|
|
{ clickroot, 0, Button3, spawn, cmd( "j4-dmenu-desktop --term=st --dmenu='dmenu -l 20 -p Open:'" ) },
|
|
|
|
{ clicktags, 0, Button1, view, {0} },
|
|
|
|
{ clicktags, 0, Button4, viewtoleft, {0} },
|
|
|
|
{ clicktags, 0, Button5, viewtoright, {0} },
|
|
|
|
{ clicktags, MODIFIER1, Button4, viewtoleft_vacant, {0} },
|
|
|
|
{ clicktags, MODIFIER1, Button5, viewtoright_vacant, {0} },
|
2022-08-21 11:53:18 +02:00
|
|
|
};
|