pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

test (544B)


      1 #!/bin/sh
      2 
      3 if [ $1 -eq 1 ]; then
      4 
      5 echo "SETTITLE title
      6 SETPROMPT prompt
      7 SETDESC PROMPT
      8 GETPIN
      9 BYE" | ./pinentry-dmenu
     10 
     11 elif [ $1 -eq 2 ]; then
     12 
     13 echo "SETTITLE title
     14 SETPROMPT confirm
     15 SETDESC CONFIRM
     16 confirm
     17 BYE" | ./pinentry-dmenu
     18 
     19 elif [ $1 -eq 3 ]; then
     20 
     21 echo "SETTITLE title
     22 SETPROMPT prompt
     23 SETDESC REPEAT
     24 SETREPEAT repeat
     25 GETPIN
     26 BYE" | ./pinentry-dmenu
     27 
     28 else
     29 
     30 echo "SETTITLE title
     31 SETPROMPT prompt
     32 SETDESC PROMPT
     33 GETPIN
     34 SETPROMPT confirm
     35 SETDESC CONFIRM
     36 confirm
     37 SETPROMPT repeat
     38 SETDESC REPEAT
     39 SETREPEAT
     40 GETPIN
     41 BYE" | ./pinentry-dmenu
     42 
     43 fi