My scripts for startup, dmenu, and the command line
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.

123456789101112131415
  1. #!/bin/sh
  2. # echo 'OK Pleased to meet you'
  3. # cat - > /tmp/randomish
  4. while read stdin; do
  5. case $stdin in
  6. *BYE*) break ;;
  7. *SETDESC*) KEYNAME=${stdin#*:%0A%22}; KEYNAME=${KEYNAME%\%22\%0A*}; KEYID=${stdin#*ID }; KEYID=${KEYID%,*}; echo OK ;;
  8. *GETPIN*) echo "D `dmenu -P -p "gpg-agent: $KEYNAME ($KEYID)"`\nOK" ;;
  9. *) echo OK;;
  10. esac
  11. done