Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # vim ft=sh
  3.  
  4. export DISPLAY=:0
  5. wid=$(wmctrl -l | awk '/3.*hackmud/{print $1}')
  6. cmd=$(printf "%s" "$*")
  7. xdotool type --window $wid "$cmd"
  8. sleep 0.05
  9. xdotool key --window $wid Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement