Escape ampersands so pango can render it with i3status-rust.
This commit is contained in:
		
							parent
							
								
									0c19d38a51
								
							
						
					
					
						commit
						c067ad2f8e
					
				| 
						 | 
				
			
			@ -101,7 +101,7 @@ async function getStatus(): Promise<Status> {
 | 
			
		|||
async function getCurrentSong(): Promise<void> {
 | 
			
		||||
  const status = await getStatus();
 | 
			
		||||
  if (status.status === "playing") {
 | 
			
		||||
    console.log(`${status.artist} - ${status.title}`);
 | 
			
		||||
    console.log(`${status.artist} - ${status.title}`.replaceAll("&", "&"));
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in New Issue