sttemp

Simple template manager
git clone git://git.konyahin.xyz/sttemp
Log | Files | Refs | LICENSE

dsttemp (280B)


      1 #!/usr/bin/env sh
      2 
      3 set -eu
      4 
      5 export STTEMP_ASK=$(
      6 	cat <<'EOF'
      7 ask () {
      8 	echo $(dmenu -p "Enter $1" </dev/null)
      9 }
     10 EOF
     11 )
     12 
     13 TEMPL_NAME=$(sttemp -l | dmenu)
     14 TEMPL_TEXT=$(sttemp "$TEMPL_NAME")
     15 
     16 echo "$TEMPL_TEXT" | xclip -selection clipboard
     17 xdotool key --clearmodifiers "Shift+Insert"