Add Window Tag Rules
- Add rules so certain windows appear on certain tags when initially launched
This commit is contained in:
		
							
								
								
									
										22
									
								
								README.org
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								config.def.h
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user