Browse Source

patched status bar

dwm6.4
Ivan Polyakov 3 years ago
parent
commit
e17ecdf30c
  1. 10
      config.def.h
  2. 6
      patches.def.h

10
config.def.h

@ -49,10 +49,16 @@ static const int toptab = False; /* False means b
#if BAR_HEIGHT_PATCH #if BAR_HEIGHT_PATCH
static const int bar_height = 0; /* 0 means derive from font, >= 1 explicit height */ static const int bar_height = 0; /* 0 means derive from font, >= 1 explicit height */
#endif // BAR_HEIGHT_PATCH #endif // BAR_HEIGHT_PATCH
#if BAR_PADDING_PATCH #if BAR_PADDING_PATCH
static const int vertpad = 10; /* vertical padding of bar */ static const int vertpad = 10; /* vertical padding of bar */
static const int sidepad = 10; /* horizontal padding of bar */ #ifdef VANITYGAPS_PATCH
static const int sidepad = gappov; /* horizontal padding of bar */
#else
static const int sidepad = 30;
#endif /* VANITYGAPS_PATCH */
#endif // BAR_PADDING_PATCH #endif // BAR_PADDING_PATCH
#if BAR_WINICON_PATCH #if BAR_WINICON_PATCH
#define ICONSIZE 20 /* icon size */ #define ICONSIZE 20 /* icon size */
#define ICONSPACING 5 /* space between icon and title */ #define ICONSPACING 5 /* space between icon and title */
@ -939,6 +945,7 @@ static Key keys[] = {
#endif // INSETS_PATCH #endif // INSETS_PATCH
{ MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Return, zoom, {0} },
#if VANITYGAPS_PATCH #if VANITYGAPS_PATCH
/*
{ MODKEY|Mod4Mask, XK_u, incrgaps, {.i = +1 } }, { MODKEY|Mod4Mask, XK_u, incrgaps, {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } }, { MODKEY|Mod4Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
{ MODKEY|Mod4Mask, XK_i, incrigaps, {.i = +1 } }, { MODKEY|Mod4Mask, XK_i, incrigaps, {.i = +1 } },
@ -955,6 +962,7 @@ static Key keys[] = {
{ MODKEY|Mod4Mask|ShiftMask, XK_9, incrovgaps, {.i = -1 } }, { MODKEY|Mod4Mask|ShiftMask, XK_9, incrovgaps, {.i = -1 } },
{ MODKEY|Mod4Mask, XK_0, togglegaps, {0} }, { MODKEY|Mod4Mask, XK_0, togglegaps, {0} },
{ MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} }, { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} },
*/
#endif // VANITYGAPS_PATCH #endif // VANITYGAPS_PATCH
{ MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_Tab, view, {0} },
#if SHIFTVIEW_PATCH #if SHIFTVIEW_PATCH

6
patches.def.h

@ -134,7 +134,7 @@
* This patch is incompatible with the extrabar patch. * This patch is incompatible with the extrabar patch.
* https://dwm.suckless.org/patches/status2d/ * https://dwm.suckless.org/patches/status2d/
*/ */
#define BAR_STATUS2D_PATCH 0 #define BAR_STATUS2D_PATCH 1
/* Supplementary patch should you want to disable alpha for the status2d section */ /* Supplementary patch should you want to disable alpha for the status2d section */
#define BAR_STATUS2D_NO_ALPHA_PATCH 0 #define BAR_STATUS2D_NO_ALPHA_PATCH 0
@ -150,7 +150,7 @@
/* The systray patch adds systray for the status bar. /* The systray patch adds systray for the status bar.
* https://dwm.suckless.org/patches/systray/ * https://dwm.suckless.org/patches/systray/
*/ */
#define BAR_SYSTRAY_PATCH 0 #define BAR_SYSTRAY_PATCH 1
/* Show tag symbols in the bar. */ /* Show tag symbols in the bar. */
#define BAR_TAGS_PATCH 1 #define BAR_TAGS_PATCH 1
@ -345,7 +345,7 @@
/* This patch adds vertical and horizontal space between the statusbar and the edge of the screen. /* This patch adds vertical and horizontal space between the statusbar and the edge of the screen.
* https://dwm.suckless.org/patches/barpadding/ * https://dwm.suckless.org/patches/barpadding/
*/ */
#define BAR_PADDING_PATCH 0 #define BAR_PADDING_PATCH 1
/* This patch adds simple markup for status messages using pango markup. /* This patch adds simple markup for status messages using pango markup.
* This depends on the pango library v1.44 or greater. * This depends on the pango library v1.44 or greater.

Loading…
Cancel
Save