6 Commits
v1.0 ... master

2 changed files with 4 additions and 5 deletions
Split View
  1. +3
    -4
      PKGBUILD
  2. +1
    -1
      dmenu-lpass.sh

+ 3
- 4
PKGBUILD View File

@ -1,7 +1,7 @@
# Maintainer: Andy Couturier <smoolak@gmail.com>
pkgname=dmenu-lpass-nu
pkgver=1.0
pkgver=1.0.2
pkgrel=1
pkgdesc="dmenu script for lastpass-cli with account name and account user"
arch=("any")
@ -9,10 +9,9 @@ url="https://smoolak.com/git/Smoolak/dmenu-lpass-nu"
license=("GPL3")
depends=("bash>=4" "lastpass-cli" "dmenu")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('2825290ed8a272623bd6667eb210f9c3aa1e1a8510d7f0da75a617fb2c526384')
sha256sums=('619ea06deb418f72fb09f88b64c9515208e83b2529d64d8801f32e0306ae71cf')
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$pkgname/dmenu-lpass.sh" "$pkgdir/usr/bin/dmenu-lpass-nu"
chmod +x "$pkgdir/usr/bin/dmenu-lpass-nu"
install -D -m755 "${pkgname}/dmenu-lpass.sh" "${pkgdir}/usr/bin/${pkgname}"
}

+ 1
- 1
dmenu-lpass.sh View File

@ -31,7 +31,7 @@ for item in `lpass ls --format "%ai %an %au"`;do
fi
done
selection=`printf '%s\n' "${!map[@]}" | dmenu`
selection=`printf '%s\n' "${!map[@]}" | dmenu -i -p 'Account'`
if [ "$selection" != "" ]; then
lpass show -c --password ${map[$selection]} &
fi

Loading…
Cancel
Save