Bash script to use the official Lastpass CLI together with Rofi.
It works like an alternative to the Lastpass browser extensions or the webapp
./lastpass-rofi.sh EMAILADDRESS [OPTIONS]
OPTIONS:
-t --timeout <HOURS>
Sets lastpass client session duration. Default value is 1 hour
-m --mode <MODE>
Sets the copy mode [username, password, url, notes] (Defaults to password).
It is recommended to set a keyboard shortcut to trigger the script
./lastpass-rofi.sh email@localhost -t 6 -m password
./lastpass-rofi.sh email@localhost -t 6 -m account
./lastpass-rofi.sh email@localhost