bind change

This commit is contained in:
speediegq 2022-08-28 02:38:33 +02:00
parent bddbac84e3
commit 0578d5d0ec
2 changed files with 17 additions and 17 deletions

View file

@ -126,7 +126,7 @@
- Focused window (Super+Alt+Middle click) | Make the focused window floating
- Focused window title (Middle click) | Rotate stack
- Dragging (Super+Right click) | Increase/decrease size of each window
- Dragging (Super+Middle click) | Increase/decrease cfact
- Dragging (SuperControl+Right click) | Increase/decrease cfact
There are also keybinds for statuscmd, but you must implement it into your own status bar.
See mouse.h for more information.

32
mouse.h
View file

@ -7,26 +7,26 @@
/* Actions when the mouse clicks a part of the screen */
static 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, MODKEY, Button2, dragcfact, {0} },
{ ClkClientWin, MODKEY, Button1, moveorplace, {.i = 1} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {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, SHCMD("speedwm-utils") },
{ ClkTagBar, 0, Button1, view, {0} },
/* 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, MODKEY|ControlMask, Button3, dragcfact, {0} },
{ ClkClientWin, MODKEY, Button1, moveorplace, {.i = 1} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {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, SHCMD("speedwm-utils") },
{ ClkTagBar, 0, Button1, view, {0} },
};
/* Commands that will run when a part of the status bar is pressed
* Built in status bar does not have support for this yet but you can add it by adding:
* '\x<num>
* '\<num>
* before you print anything. Keep in mind <num> MUST be two digits.
*
* Invalid: xsetroot -name "\x01This is a test"