- Install keyring using
conda install keyring
. Then put your sensitive info by enteringkeyring set system apass
. In a key value pair,apass
would be your key and your sensitive info would be your value. (You can change key name fromapass
to anything you like) - Install
xdotool
andxsel
, andchmod u+x
a script and put it into ~/.local/bin with the content:
#!/usr/bin/sh
xdotool type $(keyring get system apass | tr -d '\n')
xdotool key enter
The script types in the sensitive info and then hits enter key.
- Call the script using a keyboard shortcut (with Gnome Settings app) directly using the script's name.