Skip to content

Instantly share code, notes, and snippets.

@sapphirecat
Created July 22, 2022 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapphirecat/b78054477789f42d5b477c0517379886 to your computer and use it in GitHub Desktop.
Save sapphirecat/b78054477789f42d5b477c0517379886 to your computer and use it in GitHub Desktop.
lock a gnome-keyring
#!/bin/sh
ring="${1-awsvault}"
exec dbus-send --session --type=method_call \
--dest=org.gnome.keyring /org/freedesktop/secrets \
org.freedesktop.Secret.Service.Lock \
"array:objpath:/org/freedesktop/secrets/collection/${ring}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment