Refactoring install
This commit is contained in:
21
.local/bin/station-setup-spotify
Executable file
21
.local/bin/station-setup-spotify
Executable file
@@ -0,0 +1,21 @@
|
||||
#! /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"
|
||||
Reference in New Issue
Block a user