22 lines
473 B
Plaintext
22 lines
473 B
Plaintext
|
|
#! /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"
|