a few changes
This commit is contained in:
parent
b98829bfb0
commit
6c3dba17fb
|
@ -140,6 +140,8 @@ static Key keys[] = {
|
|||
{ MODIFIER1|SHIFT, -1, XK_comma, setbpgaps, {.i = -1 } },
|
||||
{ MODIFIER1|CONTROL, -1, XK_i, incstackcount, {.i = +1 } },
|
||||
{ MODIFIER1|CONTROL, -1, XK_u, incstackcount, {.i = -1 } },
|
||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_period, setbpgaps, {.i = +5 } },
|
||||
{ MODIFIER1|CONTROL|SHIFT, -1, XK_comma, setbpgaps, {.i = -5 } },
|
||||
|
||||
/* Floating mode keybinds */
|
||||
{ MODIFIER1, -1, XK_w, moveresizeaspect, {.i = +24} },
|
||||
|
|
25
speedwm.c
25
speedwm.c
|
@ -2750,11 +2750,15 @@ handlexevent(struct epoll_event *ev)
|
|||
void
|
||||
incmastercount(const Arg *arg)
|
||||
{
|
||||
if (i3mastercount) {
|
||||
selmon->mastercount = selmon->pertag->mastercounts[selmon->pertag->curtag] = !selmon->mastercount;
|
||||
} else {
|
||||
selmon->mastercount = selmon->pertag->mastercounts[selmon->pertag->curtag] = MAX(selmon->mastercount + arg->i, 0);
|
||||
}
|
||||
Client *c;
|
||||
int n;
|
||||
for (n = 0, c = nexttiled(selmon->clients); c; c = nexttiled(c->next), n++);
|
||||
if (i3mastercount) {
|
||||
selmon->mastercount = selmon->pertag->mastercounts[selmon->pertag->curtag] = MIN(!selmon->mastercount,n);
|
||||
} else {
|
||||
selmon->mastercount = selmon->pertag->mastercounts[selmon->pertag->curtag] = MAX(MIN(selmon->mastercount,n) + arg->i, 0);
|
||||
}
|
||||
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
|
@ -5507,11 +5511,6 @@ togglesystray(const Arg *arg)
|
|||
{
|
||||
selmon->hidesystray = !selmon->hidesystray;
|
||||
|
||||
/*
|
||||
if (selmon->hidesystray)
|
||||
removesystrayicon(systray->icons);
|
||||
*/
|
||||
|
||||
updatebarpos(selmon);
|
||||
updatestatus();
|
||||
}
|
||||
|
@ -5785,12 +5784,10 @@ void
|
|||
togglebarpos(const Arg *arg)
|
||||
{
|
||||
Bar *bar;
|
||||
Monitor *m = bar->mon;
|
||||
|
||||
bar->barposition = !bar->barposition;
|
||||
barposition = !barposition;
|
||||
updatebarpos(selmon);
|
||||
for (bar = selmon->bar; bar; bar = bar->next)
|
||||
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
||||
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue