Files
dotfiles/.local/bin/station-setup-spotify

22 lines
473 B
Plaintext
Raw Normal View History

2026-03-15 16:24:30 +00:00
#! /bin/zsh
echo "Signing into Spotify..."
read -r username password <<< "$(station-get-username-password "Spotify")"
echo -n "$username" | wl-copy
spotify &
station-confirm-or-close "Spotify Setup" "Username copied.\nPress OK for password"
echo -n "$password" | wl-copy
station-confirm-or-close "Spotify Setup" "Click OK when you have finished logging in to move on."
wl-copy --clear
hyprctl dispatch closewindow class:Spotify
echo "Finished setting up Spotify"