speedwm-mkpage: Auto-pushed speedwm changes!

This commit is contained in:
speediegq 2022-09-21 15:50:53 +02:00
parent c643e80554
commit 3ccf1b75c6
3 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,7 @@
- Super+Enter | Switch order of windows
- Super+Shift+q | Close the current window
- Super+Space | Set layout
- Super+r | Reset number of masters
- Super+t | Disable inactive fade
- Super+Shift+Equal | Toggle scratchpads
- Super+Shift+Minus | Hide the scratchpad

View file

@ -86,6 +86,7 @@ static const Key keys[] = {
/* speedwm general binds */
{ MODIFIER1, -1, XK_f, togglefullscr, {0} },
{ MODIFIER1, -1, XK_b, togglebar, {0} },
{ MODIFIER1, -1, XK_r, resetnmaster, {0} },
{ MODIFIER1|CONTROL, -1, XK_space, focusmaster, {0} },
{ MODIFIER1, -1, XK_j, focusstackvis, {.i = +1 } },
{ MODIFIER1, -1, XK_k, focusstackvis, {.i = -1 } },

View file

@ -398,6 +398,7 @@ static void propertynotify(XEvent *e);
static void quit(const Arg *arg);
static Client *recttoclient(int x, int y, int w, int h);
static Monitor *recttomon(int x, int y, int w, int h);
static void resetnmaster(const Arg *arg);
static void reset_layout(const Arg *arg);
static void reorganizetags(const Arg *arg);
static void resize(Client *c, int x, int y, int w, int h, int interact);
@ -3605,6 +3606,13 @@ reorganizetags(const Arg *arg) {
arrange(selmon);
}
void
resetnmaster(const Arg *arg)
{
selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = 1;
arrange(selmon);
}
void
resize(Client *c, int x, int y, int w, int h, int interact)
{