Lots of stuff
This commit is contained in:
@@ -32,3 +32,6 @@ setupdev
|
||||
setupwacom
|
||||
setupmaptool
|
||||
setupkeyring
|
||||
setupfirefox
|
||||
setupjoplin
|
||||
setupnextcloud
|
||||
|
||||
9
.local/bin/setup/setupenpass
Normal file
9
.local/bin/setup/setupenpass
Normal 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')
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user