Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
/ lastpass-dmenu Public archive

Pop-up LastPass desktop quick-search. Output the selection to the clipboard or have xdotool type it out for you.

License

Notifications You must be signed in to change notification settings

cspeterson/lastpass-dmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lastpass-dmenu

This project is no longer maintained because LastPass went to pot and drove me to Bitwarden.

If you have also moved over to Bitwarden, here is a similar, more capable tool that I wrote: [bw-menu]

Pop-up LastPass desktop quick-search. Puts the selection into the clipboard or has xdotool type it out for you.

Install

This will work on Ubuntu, but will look really similar on other distros:

# Lastpass cli is the lastpass cli client from LastPass themselves
# Dmenu is the utility that does the pop-up selection
sudo apt-get install dmenu lastpass-cli
wget -O /path/to/where/you/want/this/script https://raw.githubusercontent.com/cspeterson/lastpass-dmenu/master/lastpass-dmenu
chmod +x /path/to/where/you/want/this/script
# Login to lastpass-cli one time and it will remember your email for the
# future
lpass login [email protected]

Usage

Usage:
	lastpass-dmenu [OPTIONS]... [copy|type]

Options:
	-n, --enable-notes
			Enable the return of secure notes. When this option is set, this
			script will try to return the secure note from a selection if the
			password is not present. Default: disabled

Positional arguments:
	[copy|type]
			Specify what to do with the selected password/note: copy to the
			clipboard, or have xdotool type it for you.

Examples

Put the password into the clipboard:
		lastpass-dmenu copy

Have the script type out the password for you:
		lastpass-dmenu type

Put the password into the clipboard OR if there is no password field for
the selection, try to copy any secure note attached to the selection:
		lastpass-dmenu --enable-notes copy

Security

Please make copy mode more secure by limiting X selection requests on the
clipboard. Lpass-cli can do this by setting the environment variable
`LPASS_CLIPBOARD_COMMAND` as per lastpass-cli documentation.

xclip can do this by limiting the number of paste requests that can come
from this selection:
		export LPASS_CLIPBOARD_COMMAND="xclip -selection clipboard -in -l 1"

xsel cannot limit paste requests, but can time out the selection (ms):
		export LPASS_CLIPBOARD_COMMAND="xsel -t 5000 --input --clipboard"

About

Pop-up LastPass desktop quick-search. Output the selection to the clipboard or have xdotool type it out for you.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages