New backup 2024-12-08 13:30:01

This commit is contained in:
Penelope Gwen 2024-12-08 13:30:01 -08:00
parent 10be179732
commit f30498cad5
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#!/bin/bash
cipher_dir=$(jq -r .[].cipher_dir "${HOME}/.config/gocryptfs-wofi/config.json")
mount_dir=$(jq -r .[].mount_dir "${HOME}/.config/gocryptfs-wofi/config.json")
op=$(echo -e "Mount\nUnmount" | wofi -w 2 --height 125 -i --dmenu | awk '{print tolower($0)}')
case ${op} in
mount )
mkdir -p "${mount_dir}"
gocryptfs-ui "${cipher_dir}" "${mount_dir}" && notify-send "mounted gocryptfs vault" || notify-send "failed to mount gocryptfs vault"
;;
unmount )
umount "${mount_dir}" && notify-send "unmounted gocryptfs vault." || notify-send "failed to unmount gocryptfs vault"
rmdir "${mount_dir}"
;;
esac

View file

@ -42,3 +42,4 @@
.config/qt6ct/qt6ct.conf
.config/qt5ct/qt5ct.conf
.config/nwg-look/config
.local/bin/gocryptfs-wofi