I use KeepassX only for unimportant sites and it's set up to autostart. Entering password every time is quite annoying.
Truly, I am beginner, I run script from desktop, I use gnome-keyring, it is 50% working, sometimes it fails to enter the password, so you need to run it again :)
#!/bin/bash keepassx path/to/database.kdbx sleep 3s secret-tool lookup keepassx database.kdbx | xdotool type --window 'database.kdbx - KeePassX' --file '-'
The entry in gnome keyring I created according to this https://gist.github.com/dAnjou/b99f55de34b90246f381e71e3c8f9262