Skip to content

Commit 6b4b2f9

Browse files
committed
Bundle toggle extra bar with normal bar
* I rarely use them separately. * Has the side effect of extra bar per tag.
1 parent 42af708 commit 6b4b2f9

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

config.def.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ static Key keys[] = {
128128
/* modifier key function argument */
129129
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.v = scratchpadcmd } },
130130
{ MODKEY, XK_b, togglebar, {0} },
131-
{ MODKEY, XK_b, toggleextrabar, {0} },
132-
{ MODKEY|ShiftMask, XK_b, toggleextrabar, {0} },
133131
{ MODKEY, XK_j, focusstack, {.i = +1 } },
134132
{ MODKEY, XK_k, focusstack, {.i = -1 } },
135133
{ MODKEY|Mod1Mask, XK_j, moveresize, {.v = "0x 25y 0w 0h" } },

dwm.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ static void spawn(const Arg *arg);
259259
static void tag(const Arg *arg);
260260
static void tagmon(const Arg *arg);
261261
static void togglebar(const Arg *arg);
262-
static void toggleextrabar(const Arg *arg);
263262
static void togglefloating(const Arg *arg);
264263
static void togglecanfocusfloating(const Arg *arg);
265264
static void togglescratch(const Arg *arg);
@@ -2710,16 +2709,9 @@ void
27102709
togglebar(const Arg *arg)
27112710
{
27122711
selmon->showbar = selmon->pertag->showbars[selmon->pertag->curtag] = !selmon->showbar;
2713-
updatebarpos(selmon);
2714-
XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
2715-
arrange(selmon);
2716-
}
2717-
2718-
void
2719-
toggleextrabar(const Arg *arg)
2720-
{
27212712
selmon->extrabar = !selmon->extrabar;
27222713
updatebarpos(selmon);
2714+
XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
27232715
XMoveResizeWindow(dpy, selmon->extrabarwin, selmon->wx, selmon->eby, selmon->ww, bh);
27242716
arrange(selmon);
27252717
}

0 commit comments

Comments
 (0)