diff --git a/.local/bin/setup/setup b/.local/bin/setup/setup index 32e512e..4cd23b7 100755 --- a/.local/bin/setup/setup +++ b/.local/bin/setup/setup @@ -30,10 +30,11 @@ echo "Password set successfuly" setupvpn setupssh setupdev +setupprinter setupwacom setupmaptool setupkeyring +setupspotify setupfirefox setupjoplin setupnextcloud -setupprinter diff --git a/.local/bin/setup/setupjoplin b/.local/bin/setup/setupjoplin index d8245fc..d1a5626 100755 --- a/.local/bin/setup/setupjoplin +++ b/.local/bin/setup/setupjoplin @@ -6,11 +6,11 @@ TOWERPW=$(echo "$TOWER" | grep -Po "(?<=pass : ).+(?=\")") path="https://tower.scarif.space/remote.php/dav/files/chris/Joplin" -# joplin config sync.target 5 -# joplin config sync.5.path "$path" -# joplin config sync.5.username "$TOWERUN" -# joplin config sync.5.password "$TOWERPW" -# joplin sync +joplin config sync.target 5 +joplin config sync.5.path "$path" +joplin config sync.5.username "$TOWERUN" +joplin config sync.5.password "$TOWERPW" +joplin sync echo "$path" | xclip -selection clipboard -i diff --git a/.local/bin/setup/setupspotify b/.local/bin/setup/setupspotify new file mode 100755 index 0000000..bf62f42 --- /dev/null +++ b/.local/bin/setup/setupspotify @@ -0,0 +1,26 @@ +#! /bin/bash + +SPOTIFYD=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Spotify Dev" 2>&1) +CLIENTID=$(echo "$SPOTIFYD" | grep -Po "(?<=login: )\w+") +CLIENTPW=$(echo "$SPOTIFYD" | grep -Po "(?<=pass : ).+(?=\")") + +SPOTIFY=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Spotify" 2>&1) +SPOTIFYUN=$(echo "$SPOTIFY" | grep -Po "(?<=login: )\w+") +SPOTIFYPW=$(echo "$SPOTIFY" | grep -Po "(?<=pass : ).+(?=\")") + +echo "$SPOTIFYPW" | xclip -selection clipboard -i + +secret-tool store --label='spotifyd' application rust-keyring service spotifyd username "$SPOTIFYUN" + +systemctl --user enable --now spotifyd.service + +echo "$CLIENTID" | xclip -selection clipboard -i + +spt + +clipnotify + +echo "$CLIENTPW" | xclip -selection clipboard -i + +read -n 1 -r -s -p $'Press enter when you have setup Spotify...\n' +