Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # vim ft=sh
- export DISPLAY=:0
- wid=$(wmctrl -l | awk '/3.*hackmud/{print $1}')
- cmd=$(printf "%s" "$*")
- xdotool type --window $wid "$cmd"
- sleep 0.05
- xdotool key --window $wid Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement