fop-marcos

Collection of macros to to help during the FOP exam.
git clone git://git.oshgnacknak.de/fop-marcos.git
Log | Files | Refs | README

retype (362B)


      1 #!/bin/bash
      2 
      3 DELAY="40"
      4 LINE_DELAY="0.1"
      5 
      6 if [[ $# == 0 ]]; then
      7     echo "Usage: $0 <name-of-macro>"
      8     exit 1
      9 fi
     10 
     11 file="./macros/$1"
     12 
     13 setxkbmap
     14 while IFS='' read -r line; do
     15     xdotool type \
     16         --clearmodifiers \
     17         --delay $DELAY \
     18         "$line"
     19     xdotool key \
     20         --clearmodifiers \
     21         --delay $DELAY \
     22         Return
     23 done < $file