From f11543b79172b5b5119fce8be45f95d8451ed7f0 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Wed, 25 Aug 2021 13:19:03 -0400 Subject: [PATCH] Add Window Tag Rules - Add rules so certain windows appear on certain tags when initially launched --- README.org | 22 +++++++++++++++++++++- config.def.h | 22 +++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 1ca274a..8325ec8 100644 --- a/README.org +++ b/README.org @@ -3707,8 +3707,28 @@ Refer to the Rule struct definition for the list of available fields depending o RULE(.wintype = WTYPE "UTILITY", .isfloating = 1) RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1) RULE(.wintype = WTYPE "SPLASH", .isfloating = 1) - RULE(.title = "Origin", .isfloating = 1) RULE(.title = "Picture in picture", .isfloating = 1) + RULE(.class = "Ferdi", .tags = 1 << 0) + RULE(.class = "Signal", .tags = 1 << 0) + RULE(.class = "discord", .tags = 1 << 0) + RULE(.class = "Microsoft Teams - Preview", .tags = 1 << 0) + RULE(.class = "notion-app-enhanced", .tags = 1 << 1) + RULE(.class = "pocket-casts-linux", .tags = 1 << 2) + RULE(.class = "Spotify", .tags = 1 << 3) + RULE(.class = "Vivaldi-stable", .tags = 1 << 4) + RULE(.class = "kitty", .tags = 1 << 5) + RULE(.class = "Emacs", .tags = 1 << 6) + RULE(.class = "Code", .tags = 1 << 6) + RULE(.class = "MATLAB R2021a - academic use", .tags = 1 << 6) + RULE(.class = "Steam", .tags = 1 << 7) + RULE(.class = "Lutris", .tags = 1 << 7) + RULE(.title = "Origin", .tags = 1 << 7, .isfloating = 1) + RULE(.class = "Thunar", .tags = 1 << 8) + RULE(.class = "trackma", .tags = 1 << 8) + RULE(.class = "obs", .tags = 1 << 8) + RULE(.class = "NoiseTorch", .tags = 1 << 8) + RULE(.class = "kdenlive", .tags = 1 << 8) + RULE(.class = "Motrix", .tags = 1 << 8) #if SCRATCHPADS_PATCH RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1) #endif // SCRATCHPADS_PATCH diff --git a/config.def.h b/config.def.h index 77f658b..8074490 100644 --- a/config.def.h +++ b/config.def.h @@ -390,8 +390,28 @@ static const Rule rules[] = { RULE(.wintype = WTYPE "UTILITY", .isfloating = 1) RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1) RULE(.wintype = WTYPE "SPLASH", .isfloating = 1) - RULE(.title = "Origin", .isfloating = 1) RULE(.title = "Picture in picture", .isfloating = 1) + RULE(.class = "Ferdi", .tags = 1 << 0) + RULE(.class = "Signal", .tags = 1 << 0) + RULE(.class = "discord", .tags = 1 << 0) + RULE(.class = "Microsoft Teams - Preview", .tags = 1 << 0) + RULE(.class = "notion-app-enhanced", .tags = 1 << 1) + RULE(.class = "pocket-casts-linux", .tags = 1 << 2) + RULE(.class = "Spotify", .tags = 1 << 3) + RULE(.class = "Vivaldi-stable", .tags = 1 << 4) + RULE(.class = "kitty", .tags = 1 << 5) + RULE(.class = "Emacs", .tags = 1 << 6) + RULE(.class = "Code", .tags = 1 << 6) + RULE(.class = "MATLAB R2021a - academic use", .tags = 1 << 6) + RULE(.class = "Steam", .tags = 1 << 7) + RULE(.class = "Lutris", .tags = 1 << 7) + RULE(.title = "Origin", .tags = 1 << 7, .isfloating = 1) + RULE(.class = "Thunar", .tags = 1 << 8) + RULE(.class = "trackma", .tags = 1 << 8) + RULE(.class = "obs", .tags = 1 << 8) + RULE(.class = "NoiseTorch", .tags = 1 << 8) + RULE(.class = "kdenlive", .tags = 1 << 8) + RULE(.class = "Motrix", .tags = 1 << 8) #if SCRATCHPADS_PATCH RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1) #endif // SCRATCHPADS_PATCH