commit a9b2f6d25a71c9adf4ba9fae8329c52cc22c43da
parent 451fcf9c8f93d7b7142eb24caaf3b86fa372b1a6
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Fri, 20 Jun 2025 09:38:22 +0200
More tag config
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
@@ -29,7 +29,10 @@ static const XPoint stickyicon[]    = { {0,0}, {4,0}, {4,8}, {2,6}, {0,8}, {0,0}
 static const XPoint stickyiconbb    = {4,8};	/* defines the bottom right corner of the polygon's bounding box (speeds up scaling) */
 
 /* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+#define MAX_TAGNAME_LEN 14		/* excludes TAG_PREPEND */
+#define TAG_PREPEND "%1i:"		/* formatted as 2 chars */
+#define MAX_TAGLEN 16			/* altogether */
+static char tags[][MAX_TAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
 
 static const Rule rules[] = {
 	/* xprop(1):
diff --git a/config.h b/config.h
@@ -50,6 +50,8 @@ static const Rule rules[] = {
         { "Desktop-session-exit.py", NULL,            NULL,                    0,      1,          0,          0,         -1 },
 	{ NULL,                      NULL,            "Event Tester",          0,      0,          0,          1,         -1 },
         { "Brave-browser",           "brave-browser", NULL,                    1 << 8, 0,          0,          0,         -1 },
+        { "Brave-browser",           NULL,            "Outlook (PWA)",         1 << 4, 0,          0,          0,         -1 },
+        { "Brave-browser",           NULL,            "Microsoft Teams",       1 << 5, 0,          0,          0,         -1 },
         { "Dragon-drag-and-drop",    NULL,            NULL,                    0,      1,          0,          1,         -1 },
         { "ripdrag",                 NULL,            NULL,                    0,      1,          0,          1,         -1 },
         { "Signal",                  "signal",        "Signal",                1 << 7, 0,          0,          0,         -1 },