You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mpw-get 336B

12345678910
  1. #!/usr/bin/env elvish
  2. name = (cat ~/sns/mpwname)
  3. t=""
  4. if (eq 0 (count $args)) {
  5. @sites=(cat $E:XDG_CONFIG_HOME/mpwc/$name.mpsites)
  6. t=(echo &sep="\n" $@sites | rofi -dmenu -p 'Enter site: ' -width 20 -columns 1)
  7. } else {
  8. t=$args[0]
  9. }
  10. gpg2 -d -q ~/sns/password.gpg | mpwc -S -k max -n $name -s $t 2>/dev/null | xclip -sel c -r -l 1