- 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
		
			
				
	
	
		
			21 lines
		
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			403 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| VOLUME=$(osascript -e "output volume of (get volume settings)")
 | |
| MUTED=$(osascript -e "output muted of (get volume settings)")
 | |
| 
 | |
| if [ "$MUTED" != "false" ]; then
 | |
| 	ICON=" "
 | |
| 	VOLUME=0
 | |
| else
 | |
| 	case ${VOLUME} in
 | |
| 	100) ICON=" " ;;
 | |
| 	[5-9]*) ICON=" " ;;
 | |
| 	[0-9]*) ICON=" " ;;
 | |
| 	*) ICON=" " ;;
 | |
| 	esac
 | |
| fi
 | |
| 
 | |
| sketchybar -m \
 | |
| 	--set "$NAME" icon=$ICON \
 | |
| 	--set "$NAME" label="$VOLUME%"
 |