Skip to main content

Global keyboard shortcuts for Spotify volume on macOS

I like to control the volume of Spotify independently of the system volume. This way I can turn down the music when I hop into a call. Unfortunately, Spotify doesn’t offer global keyboard shortcuts that work when it is not in the foreground.

But thanks to shortcuts in macOS, we can control Spotify’s volume using AppleScript:

on run
	tell application "Spotify" to set spotifyVolume to sound volume as integer
	
	set spotifyVolume to spotifyVolume + 10
	
	if spotifyVolume > 100 then
		set spotifyVolume to 100
	end if
	
	tell application "Spotify" to set sound volume to spotifyVolume
	
	return spotifyVolume
end run

To decrease the volume, we use a similar script.

Once the Shortcut is set up, we can assign a keyboard shortcut to it:

Setting a keyboard shortcut for a Shortcut
Setting a keyboard shortcut

Download the Shortcuts here: Spotify Volume Up and Spotify Volume Down.