Skip to content

Instantly share code, notes, and snippets.

@realitygaps
Created October 28, 2015 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save realitygaps/dfeff9dde6d44c342ee5 to your computer and use it in GitHub Desktop.
Save realitygaps/dfeff9dde6d44c342ee5 to your computer and use it in GitHub Desktop.
This is a fork of passmenu script to use it with rofi
#!/bin/bash
shopt -s nullglob globstar
password_files=( ~/.password-store/**/*.gpg )
password_files=( "${password_files[@]##*/.password-store/}" )
password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | rofi -dmenu "$@" -font "snap 10" -fg "#D3D3D3" -bg "#000000" -hlfg "#ffb964" -hlbg "#000000" -o 85)
pass -c "$password"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment