dotfiles/.config/karabiner/scripts/spotify_playpause.scpt

6 lines
220 B
Plaintext
Raw Normal View History

2024-12-05 09:19:58 +01:00
-- If Spotify is running, toggle play/pause. Otherwise do nothing
if application "Spotify" is running then
using terms from application "Spotify"
tell application "Spotify" to playpause
end using terms from
end if