mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Add a statusallmons and staticstatus easily toggleable in patches.h ref. #188
This commit is contained in:
parent
a42a81a711
commit
e68f434944
10
README.md
10
README.md
@ -623,15 +623,15 @@ If you are experiencing issues then you may want to check out the [Known Issues]
|
|||||||
- [stacker](https://dwm.suckless.org/patches/stacker/)
|
- [stacker](https://dwm.suckless.org/patches/stacker/)
|
||||||
- provides comprehensive utilities for managing the client stack
|
- provides comprehensive utilities for managing the client stack
|
||||||
|
|
||||||
- [~staticstatus~](https://dwm.suckless.org/patches/staticstatus/)
|
- [staticstatus](https://dwm.suckless.org/patches/staticstatus/)
|
||||||
- ~allows the status text to be fixed to the bar on a specific monitor rather than being
|
- allows the status text to be fixed to the bar on a specific monitor rather than being
|
||||||
drawn on the focused monitor~
|
drawn on the focused monitor
|
||||||
|
|
||||||
- [status2d](https://dwm.suckless.org/patches/status2d/)
|
- [status2d](https://dwm.suckless.org/patches/status2d/)
|
||||||
- allows colors and rectangle drawing in the dwm status bar
|
- allows colors and rectangle drawing in the dwm status bar
|
||||||
|
|
||||||
- [~statusallmons~](https://dwm.suckless.org/patches/statuspadding/)
|
- [statusallmons](https://dwm.suckless.org/patches/statuspadding/)
|
||||||
- ~this patch draws and updates the statusbar on all monitors~
|
- this patch draws and updates the statusbar on all monitors
|
||||||
|
|
||||||
- [statusbutton](https://dwm.suckless.org/patches/statusbutton/)
|
- [statusbutton](https://dwm.suckless.org/patches/statusbutton/)
|
||||||
- adds a clickable button to the left hand side of the statusbar
|
- adds a clickable button to the left hand side of the statusbar
|
||||||
|
36
config.def.h
36
config.def.h
@ -72,6 +72,14 @@ static const int riodraw_borders = 0; /* 0 or 1, indicates whether the
|
|||||||
static const int riodraw_matchpid = 1; /* 0 or 1, indicates whether to match the PID of the client that was spawned with riospawn */
|
static const int riodraw_matchpid = 1; /* 0 or 1, indicates whether to match the PID of the client that was spawned with riospawn */
|
||||||
#endif // SWALLOW_PATCH
|
#endif // SWALLOW_PATCH
|
||||||
#endif // RIODRAW_PATCH
|
#endif // RIODRAW_PATCH
|
||||||
|
/* Status is to be shown on: -1 (all monitors), 0 (a specific monitor by index), 'A' (active monitor) */
|
||||||
|
#if BAR_STATUSALLMONS_PATCH
|
||||||
|
static const int statusmon = -1;
|
||||||
|
#elif BAR_STATICSTATUS_PATCH
|
||||||
|
static const int statusmon = 0;
|
||||||
|
#else
|
||||||
|
static const int statusmon = 'A';
|
||||||
|
#endif // BAR_STATUSALLMONS_PATCH | BAR_STATICSTATUS_PATCH
|
||||||
#if BAR_STATUSPADDING_PATCH
|
#if BAR_STATUSPADDING_PATCH
|
||||||
static const int horizpadbar = 2; /* horizontal padding for statusbar */
|
static const int horizpadbar = 2; /* horizontal padding for statusbar */
|
||||||
static const int vertpadbar = 0; /* vertical padding for statusbar */
|
static const int vertpadbar = 0; /* vertical padding for statusbar */
|
||||||
@ -482,19 +490,19 @@ static const BarRule barrules[] = {
|
|||||||
{ -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, "layout" },
|
{ -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, "layout" },
|
||||||
#endif // BAR_LTSYMBOL_PATCH
|
#endif // BAR_LTSYMBOL_PATCH
|
||||||
#if BAR_STATUSCOLORS_PATCH && BAR_STATUSCMD_PATCH
|
#if BAR_STATUSCOLORS_PATCH && BAR_STATUSCMD_PATCH
|
||||||
{ 'A', 0, BAR_ALIGN_RIGHT, width_statuscolors, draw_statuscolors, click_statuscmd, "statuscolors" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_statuscolors, draw_statuscolors, click_statuscmd, "statuscolors" },
|
||||||
#elif BAR_STATUSCOLORS_PATCH
|
#elif BAR_STATUSCOLORS_PATCH
|
||||||
{ 'A', 0, BAR_ALIGN_RIGHT, width_statuscolors, draw_statuscolors, click_statuscolors, "statuscolors" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_statuscolors, draw_statuscolors, click_statuscolors, "statuscolors" },
|
||||||
#elif BAR_STATUS2D_PATCH && BAR_STATUSCMD_PATCH
|
#elif BAR_STATUS2D_PATCH && BAR_STATUSCMD_PATCH
|
||||||
{ 'A', 0, BAR_ALIGN_RIGHT, width_status2d, draw_status2d, click_statuscmd, "status2d" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status2d, draw_status2d, click_statuscmd, "status2d" },
|
||||||
#elif BAR_STATUS2D_PATCH
|
#elif BAR_STATUS2D_PATCH
|
||||||
{ 'A', 0, BAR_ALIGN_RIGHT, width_status2d, draw_status2d, click_status2d, "status2d" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status2d, draw_status2d, click_status2d, "status2d" },
|
||||||
#elif BAR_POWERLINE_STATUS_PATCH
|
#elif BAR_POWERLINE_STATUS_PATCH
|
||||||
{ 0, 0, BAR_ALIGN_RIGHT, width_pwrl_status, draw_pwrl_status, click_pwrl_status, "powerline_status" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_pwrl_status, draw_pwrl_status, click_pwrl_status, "powerline_status" },
|
||||||
#elif BAR_STATUS_PATCH && BAR_STATUSCMD_PATCH
|
#elif BAR_STATUS_PATCH && BAR_STATUSCMD_PATCH
|
||||||
{ 0, 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_statuscmd, "status" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_statuscmd, "status" },
|
||||||
#elif BAR_STATUS_PATCH
|
#elif BAR_STATUS_PATCH
|
||||||
{ 'A', 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_status, "status" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_status, "status" },
|
||||||
#endif // BAR_STATUS2D_PATCH | BAR_STATUSCMD_PATCH
|
#endif // BAR_STATUS2D_PATCH | BAR_STATUSCMD_PATCH
|
||||||
#if XKB_PATCH
|
#if XKB_PATCH
|
||||||
{ 0, 0, BAR_ALIGN_RIGHT, width_xkb, draw_xkb, click_xkb, "xkb" },
|
{ 0, 0, BAR_ALIGN_RIGHT, width_xkb, draw_xkb, click_xkb, "xkb" },
|
||||||
@ -512,19 +520,19 @@ static const BarRule barrules[] = {
|
|||||||
#endif // BAR_TABGROUPS_PATCH | BAR_AWESOMEBAR_PATCH | BAR_FANCYBAR_PATCH | BAR_WINTITLE_PATCH
|
#endif // BAR_TABGROUPS_PATCH | BAR_AWESOMEBAR_PATCH | BAR_FANCYBAR_PATCH | BAR_WINTITLE_PATCH
|
||||||
#if BAR_EXTRASTATUS_PATCH
|
#if BAR_EXTRASTATUS_PATCH
|
||||||
#if BAR_STATUSCOLORS_PATCH && BAR_STATUSCMD_PATCH
|
#if BAR_STATUSCOLORS_PATCH && BAR_STATUSCMD_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_statuscolors_es, draw_statuscolors_es, click_statuscmd_es, "statuscolors_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_statuscolors_es, draw_statuscolors_es, click_statuscmd_es, "statuscolors_es" },
|
||||||
#elif BAR_STATUSCOLORS_PATCH
|
#elif BAR_STATUSCOLORS_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_statuscolors_es, draw_statuscolors_es, click_statuscolors, "statuscolors_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_statuscolors_es, draw_statuscolors_es, click_statuscolors, "statuscolors_es" },
|
||||||
#elif BAR_STATUS2D_PATCH && BAR_STATUSCMD_PATCH
|
#elif BAR_STATUS2D_PATCH && BAR_STATUSCMD_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_status2d_es, draw_status2d_es, click_statuscmd_es, "status2d_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_status2d_es, draw_status2d_es, click_statuscmd_es, "status2d_es" },
|
||||||
#elif BAR_STATUS2D_PATCH
|
#elif BAR_STATUS2D_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_status2d_es, draw_status2d_es, click_status2d, "status2d_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_status2d_es, draw_status2d_es, click_status2d, "status2d_es" },
|
||||||
#elif BAR_POWERLINE_STATUS_PATCH
|
#elif BAR_POWERLINE_STATUS_PATCH
|
||||||
{ 0, 1, BAR_ALIGN_RIGHT, width_pwrl_status_es, draw_pwrl_status_es, click_pwrl_status, "powerline_status" },
|
{ statusmon, 1, BAR_ALIGN_RIGHT, width_pwrl_status_es, draw_pwrl_status_es, click_pwrl_status, "powerline_status" },
|
||||||
#elif BAR_STATUSCMD_PATCH && BAR_STATUS_PATCH
|
#elif BAR_STATUSCMD_PATCH && BAR_STATUS_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_statuscmd_es, "status_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_statuscmd_es, "status_es" },
|
||||||
#elif BAR_STATUS_PATCH
|
#elif BAR_STATUS_PATCH
|
||||||
{ 'A', 1, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_status, "status_es" },
|
{ statusmon, 1, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_status, "status_es" },
|
||||||
#endif // BAR_STATUS2D_PATCH | BAR_STATUSCMD_PATCH
|
#endif // BAR_STATUS2D_PATCH | BAR_STATUSCMD_PATCH
|
||||||
#endif // BAR_EXTRASTATUS_PATCH
|
#endif // BAR_EXTRASTATUS_PATCH
|
||||||
#if BAR_FLEXWINTITLE_PATCH
|
#if BAR_FLEXWINTITLE_PATCH
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
*
|
*
|
||||||
* Examples:
|
* Examples:
|
||||||
* xsetroot -name "$(echo -e '<\x01a<\x02b<\x03c')"
|
* xsetroot -name "$(echo -e '<\x01a<\x02b<\x03c')"
|
||||||
* xsetroot -name "$(echo -e '/\x01d/\x02d/\x03f')"
|
* xsetroot -name "$(echo -e '/\x01d/\x02e/\x03f')"
|
||||||
*
|
*
|
||||||
* https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7
|
* https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7
|
||||||
* https://dwm.suckless.org/patches/statuscolors/
|
* https://dwm.suckless.org/patches/statuscolors/
|
||||||
@ -358,6 +358,18 @@
|
|||||||
*/
|
*/
|
||||||
#define BAR_PANGO_PATCH 0
|
#define BAR_PANGO_PATCH 0
|
||||||
|
|
||||||
|
/* This patch allows the status text to be fixed to the bar on a specific
|
||||||
|
* monitor rather than being drawn on the focused monitor.
|
||||||
|
* The statusallmons patch takes precedence over this patch.
|
||||||
|
* https://dwm.suckless.org/patches/staticstatus/
|
||||||
|
*/
|
||||||
|
#define BAR_STATICSTATUS_PATCH 0
|
||||||
|
|
||||||
|
/* This patch draws and updates the statusbar on all monitors.
|
||||||
|
* https://dwm.suckless.org/patches/statusallmons/
|
||||||
|
*/
|
||||||
|
#define BAR_STATUSALLMONS_PATCH 0
|
||||||
|
|
||||||
/* This patch enables colored text in the status bar. It changes the way colors are defined
|
/* This patch enables colored text in the status bar. It changes the way colors are defined
|
||||||
* in config.h allowing multiple color combinations for use in the status script.
|
* in config.h allowing multiple color combinations for use in the status script.
|
||||||
* This patch is incompatible with and takes precedence over the status2d patch.
|
* This patch is incompatible with and takes precedence over the status2d patch.
|
||||||
|
Loading…
Reference in New Issue
Block a user