#!/usr/bin/env bash

# omarchy:summary=Launch Spotify or start its installer when missing.

set -e

if [[ -x /usr/bin/spotify ]]; then
  exec omarchy-launch-or-focus spotify "uwsm-app -- /usr/bin/spotify"
fi

exec omarchy-launch-floating-terminal-with-presentation omarchy-install-service-spotify
