mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	updated output format for better expansibility and easier parsing
This commit is contained in:
		
							parent
							
								
									a1e24075d8
								
							
						
					
					
						commit
						593b7eec3c
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		
							
								
								
									
										9
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -2180,12 +2180,13 @@ statusbar(void)
 | 
				
			||||||
				activetags |= c->tags;
 | 
									activetags |= c->tags;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (focustop(m))
 | 
							if (focustop(m))
 | 
				
			||||||
			fprintf(taginfo, "%s\n", client_get_title(focustop(m)));
 | 
								fprintf(taginfo, "%s title %s\n", m->wlr_output->name, client_get_title(focustop(m)));
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			fprintf(taginfo, "\n");
 | 
								fprintf(taginfo, "%s title \n", m->wlr_output->name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		fprintf(taginfo, "%u %u %u %s\n", m == selmon,
 | 
							fprintf(taginfo, "%s selmon %u\n", m->wlr_output->name, m == selmon);
 | 
				
			||||||
				activetags, m->tagset[m->seltags], selmon->lt[selmon->sellt]->symbol);
 | 
							fprintf(taginfo, "%s tags %u %u\n", m->wlr_output->name, activetags, m->tagset[m->seltags]);
 | 
				
			||||||
 | 
							fprintf(taginfo, "%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	fclose (taginfo);
 | 
						fclose (taginfo);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue