From 0f57808f539d6a9ad48641f1543ac66a9bf1bf20 Mon Sep 17 00:00:00 2001 From: Alexis Jhon Gaspar Date: Mon, 2 Oct 2023 21:12:57 +0800 Subject: [PATCH] Added taggrid, added 1 tag too --- dwm-flexipatch/config.def.h | 12 ++++++------ dwm-flexipatch/dwm.c | 2 +- dwm-flexipatch/patches.def.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dwm-flexipatch/config.def.h b/dwm-flexipatch/config.def.h index 48a13d9..ed2219d 100644 --- a/dwm-flexipatch/config.def.h +++ b/dwm-flexipatch/config.def.h @@ -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 diff --git a/dwm-flexipatch/dwm.c b/dwm-flexipatch/dwm.c index 09164da..63dc75d 100644 --- a/dwm-flexipatch/dwm.c +++ b/dwm-flexipatch/dwm.c @@ -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 diff --git a/dwm-flexipatch/patches.def.h b/dwm-flexipatch/patches.def.h index 632fd20..11b22bb 100644 --- a/dwm-flexipatch/patches.def.h +++ b/dwm-flexipatch/patches.def.h @@ -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. *