- Added darwin and jovian inputs - Added platform-specific package configurations - Added darwinConfigurations and deck nixosConfiguration - Copied darwin and deck specific files - Fixed darwin version compatibility Some configurations still need debugging
		
			
				
	
	
		
			12 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| STATE="$(echo "$INFO" | jq -r '.state')"
 | |
| APP="$(echo "$INFO" | jq -r '.app')"
 | |
| 
 | |
| if [ "$STATE" = "playing" ] && [ "$APP" == "Spotify" ]; then
 | |
| 	MEDIA="$(echo "$INFO" | jq -r '.title + " - " + .artist')"
 | |
| 	sketchybar --set "$NAME" label="$MEDIA" drawing=on
 | |
| else
 | |
| 	sketchybar --set "$NAME" drawing=off
 | |
| fi
 |