Skip to content

Instantly share code, notes, and snippets.

@regnerjr
Created December 21, 2012 14:45
Show Gist options
  • Save regnerjr/4353227 to your computer and use it in GitHub Desktop.
Save regnerjr/4353227 to your computer and use it in GitHub Desktop.
Written for Linux Autokey. This script prompts for a command and then runs that command in the terminal.
commandToRun=dialog.input_dialog(title="Terminal Command", message='', default='ls')
system.exec_command("/usr/bin/gnome-terminal", getOutput=False)
window.wait_for_focus("Terminal", timeOut=5)
keyboard.send_keys(commandToRun[1])
keyboard.send_keys("<enter>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment