1 Debian patch touch this file
| •1 | #!/bin/bash |
| 2 | set -e |
| 3 | pid="$( xdotool getactivewindow getwindowpid )" |
| 4 | pids() { xdotool search --classname "$1" getwindowpid %@; } |
| 5 | if pids rxvt | grep -q "^$pid$"; then |
| 6 | key=ctrl+alt+v |
| 7 | elif ( pids terminal; pids st-256color ) | grep -q "^$pid$"; then |
| 8 | key=ctrl+shift+v |
| 9 | else |
| 10 | key=ctrl+v |
| 11 | fi |
| 12 | kanjidraw -s "$@" | tr -d '\n' | xclip -i -selection clipboard |
| 13 | xdotool key --delay 250 "$key" |