Add Window Tag Rules

- Add rules so certain windows appear on certain tags when initially launched
This commit is contained in:
Sravan Balaji 2021-08-25 13:19:03 -04:00
parent c7dade7403
commit f11543b791
2 changed files with 42 additions and 2 deletions

View File

@ -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

View File

@ -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