Lots of stuff

This commit is contained in:
2021-06-13 11:43:14 +01:00
parent dad3e90dcf
commit 61b9707ae7
10 changed files with 90 additions and 19 deletions

View File

@@ -32,3 +32,6 @@ setupdev
setupwacom
setupmaptool
setupkeyring
setupfirefox
setupjoplin
setupnextcloud

View File

@@ -0,0 +1,9 @@
#! /bin/bash
[ -z MASTERPW ] &&
export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
PIN=$(dialog --no-cancel --passwordbox "Enter short term PIN for master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')

View File

@@ -4,8 +4,27 @@ TOWER=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Sca
TOWERUN=$(echo "$TOWER" | grep -Po "(?<=login: )\w+")
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 https://tower.scarif.space/remote.php/dav/files/chris/Joplin
joplin config sync.5.path "$path"
joplin config sync.5.username "$TOWERUN"
joplin config sync.5.password "$TOWERPW"
joplin sync
joplin sync &
echo "$path" | xclip -selection clipboard -i
joplin-desktop &
clipnotify
echo "$TOWERUN" | xclip -selection clipboard -i
clipnotify
echo "$TOWERPW" | xclip -selection clipboard -i
read -n 1 -r -s -p $'Press enter when you have synced Joplin...\n'
echo "" | xclip -selection clipboard -i