Skip to content

Instantly share code, notes, and snippets.

@vodolaz095
Created December 17, 2024 06:11
Show Gist options
  • Save vodolaz095/088e7dcec3dc0a07054b67f3901217c0 to your computer and use it in GitHub Desktop.
Save vodolaz095/088e7dcec3dc0a07054b67f3901217c0 to your computer and use it in GitHub Desktop.
Script for starting Network Manager VPN connection with password stored in secret-tool \ seahorse in linux
#!/usr/bin/env bash
work_pwd=`secret-tool lookup user vodolaz095 domain example.org`
(
sleep 1
echo "vodolaz095"
sleep 1
echo "$work_pwd"
) | nmcli connection up work --ask
#!/usr/bin/env bash
secret-tool store --label=work user vodolaz095 domain example.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment