10 lines
		
	
	
		
			245 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			245 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| STATE="$(echo "$INFO" | jq -r '.state')"
 | |
| if [ "$STATE" = "playing" ]; then
 | |
|   MEDIA="$(echo "$INFO" | jq -r '.title + " - " + .artist')"
 | |
|   sketchybar --set $NAME label="$MEDIA" drawing=on
 | |
| else
 | |
|   sketchybar --set $NAME drawing=off
 | |
| fi
 |