blob: 90a711243183f9f7d4980fc6a490e44e716c7771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
echo "OK its time to enter ur password or something"
while read stdin; do
case $stdin in
*BYE*) exit 0 ;;
*SETDESC*) KEYNAME=''${stdin#*:%0A%22}; KEYNAME=''${KEYNAME%\%22\%0A*}; KEYID=''${stdin#*ID }; KEYID=''${KEYID%,*}; echo OK ;;
*GETPIN*) echo "D `fuzzel --dmenu --password=• -l 0 --layer=overlay --width=100 --anchor=top --font=monospace --prompt="password for ''${KEYNAME} > "`"; echo OK;;
*SETERROR*) notify-send "''${stdin#SETERROR }"; echo "OK" ;;
*) echo OK;;
esac
done
|