Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Created November 6, 2022 16:24
Show Gist options
  • Save e-minguez/ef8686fb007e0cf642d62c93f9eb393c to your computer and use it in GitHub Desktop.
Save e-minguez/ef8686fb007e0cf642d62c93f9eb393c to your computer and use it in GitHub Desktop.
Unlock plasma vaults using GUI
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/deck/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/deck/.local/bin
PASS=$(zenity --title Vault --password)
for vault in ~/Vaults/*; do
gocryptfs -idle 5m --extpass "echo ${PASS}" ~/.local/share/plasma-vault/$(basename ${vault}).enc ${vault}
done
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u %U @@
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=nextcloud --file-forwarding com.nextcloud.desktopclient.nextcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment