Added taggrid, added 1 tag too

This commit is contained in:
Alexis Jhon Gaspar 2023-10-02 21:12:57 +08:00
parent d04b888fe8
commit 0f57808f53
3 changed files with 8 additions and 8 deletions

View file

@ -453,9 +453,9 @@ static char tagicons[][NUMTAGS][MAX_TAGLEN] =
static char *tagicons[][NUMTAGS] =
#endif // NAMETAG_PATCH
{
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[ALT_TAGS_DECORATION] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" },
[ALT_TAGS_DECORATION] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" },
};
#if BAR_TAGGRID_PATCH
@ -561,6 +561,9 @@ static const BarRule barrules[] = {
{ -1, 1, BAR_ALIGN_LEFT, width_stbutton4, draw_stbutton4, click_stbutton4, NULL, "statusbutton4" },
{ -1, 1, BAR_ALIGN_RIGHT, width_stbutton5, draw_stbutton5, click_stbutton5, NULL, "statusbutton5" },
#endif // BAR_STATUSBUTTON_PATCH
#if BAR_TAGGRID_PATCH
{ -1, 0, BAR_ALIGN_LEFT, width_taggrid, draw_taggrid, click_taggrid, NULL, "taggrid" },
#endif // BAR_TAGGRID_PATCH
#if BAR_POWERLINE_TAGS_PATCH
{ 0, 0, BAR_ALIGN_LEFT, width_pwrl_tags, draw_pwrl_tags, click_pwrl_tags, hover_pwrl_tags, "powerline_tags" },
#endif // BAR_POWERLINE_TAGS_PATCH
@ -570,9 +573,6 @@ static const BarRule barrules[] = {
#if BAR_TAGLABELS_PATCH
{ -1, 0, BAR_ALIGN_LEFT, width_taglabels, draw_taglabels, click_taglabels, hover_taglabels, "taglabels" },
#endif // BAR_TAGLABELS_PATCH
#if BAR_TAGGRID_PATCH
{ -1, 0, BAR_ALIGN_LEFT, width_taggrid, draw_taggrid, click_taggrid, NULL, "taggrid" },
#endif // BAR_TAGGRID_PATCH
#if BAR_SYSTRAY_PATCH
{ 0, 0, BAR_ALIGN_RIGHT, width_systray, draw_systray, click_systray, NULL, "systray" },
#endif // BAR_SYSTRAY_PATCH

View file

@ -75,7 +75,7 @@
#define Button7 7
#define Button8 8
#define Button9 9
#define NUMTAGS 9
#define NUMTAGS 10
#define NUMVIEWHIST NUMTAGS
#define BARRULES 20
#if TAB_PATCH

View file

@ -113,7 +113,7 @@
/* This patch adds an option to place tags in rows like in many other window managers.
* https://dwm.suckless.org/patches/taggrid/
*/
#define BAR_TAGGRID_PATCH 0
#define BAR_TAGGRID_PATCH 1
/* Hover tag icons to see a preview of the windows on that tag.
*