Merge branch 'master' of ssh://curry.rre.nu:3022/jonas/dotfiles

This commit is contained in:
Jonas Forsberg 2020-08-17 08:39:25 +02:00
commit 4ad193f445
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
4 changed files with 23 additions and 1 deletions

20
bin/genwgQR Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
keepassdb="$HOME/Nextcloud/passwords/Passwords.kdbx"
type qrencode >/dev/null 2>&1 || { printf "qrencode is not installed\n" >&2; exit 1; }
type keepassxc-cli >/dev/null 2>&1 || { printf "KeepassXC is not installed\n" >&2; exit 1; }
printf "Enter password for $keepassdb: "
read -s password
printf "\n"
printf "Enter device name you want to generate the code for: "
read device
printf "Enter the tunnel name: "
read tunnel
echo "$password" | keepassxc-cli show -q --attributes Notes "$keepassdb" /Wireguard/"$device"/"$tunnel" | qrencode -t ansiutf8
unset password

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
keepassdb="Nextcloud/passwords/Passwords.kdbx" keepassdb="$HOME/Nextcloud/passwords/Passwords.kdbx"
type wg >/dev/null 2>&1 || { printf "wireguard is not installed\n" >&2; exit 1; } type wg >/dev/null 2>&1 || { printf "wireguard is not installed\n" >&2; exit 1; }
type keepassxc-cli >/dev/null 2>&1 || { printf "KeepassXC is not installed\n" >&2; exit 1; } type keepassxc-cli >/dev/null 2>&1 || { printf "KeepassXC is not installed\n" >&2; exit 1; }

View File

@ -1,2 +1,3 @@
packages: packages:
weechat: { status: installed } weechat: { status: installed }
grencode: { status: installed }

View File

@ -15,3 +15,4 @@ packages:
xdg-utils: { status: installed } xdg-utils: { status: installed }
nodejs10: { status: installed } nodejs10: { status: installed }
pattern:devel_basis: { status: installed } pattern:devel_basis: { status: installed }
wireguard-tools: { status: installed }