Port switchtotag

Adds a rule option to switch to the configured tag when a window opens,
then switch back when it closes.
This commit is contained in:
Guido Cella 2023-05-03 09:38:59 +02:00
parent 960c32a7d8
commit 9311c56fb0
2 changed files with 14 additions and 3 deletions

View file

@ -12,11 +12,11 @@ static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
static const int tagcount = TAGCOUNT;
static const Rule rules[] = {
/* app_id title tags mask isfloating monitor */
/* app_id title tags mask switchtotag isfloating monitor */
/* examples:
{ "Gimp", NULL, 0, 1, -1 },
{ "Gimp", NULL, 0, 0, 1, -1 },
{ "firefox", NULL, 1 << 8, 1, 0, -1 },
*/
{ "firefox", NULL, 1 << 8, 0, -1 },
};
/* layout(s) */