Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

# this is for running the AIORemote server from my Ubuntu 12.04 LTS Laptop to run with my Android device as remote control mouse pad and wireless file transfer.

I know how to create keyboard shortcut which execute .jar file but i'd like to know how to make a shortcut that would toggle (start/stop) the program either with .jar or .sh files provided by the program developer.

On the same note, is there any way that I can edit the Keyboard Shortcut message that pops up on pressing the "Super" key? I am not sure if this make any more sense but I am running Ubuntu 12.04 LTS 64bit with 3.13 mainline kernel.

share|improve this question
This is certainly possible. The only way to kill the java program would be with something like kill though. – Seth Jan 26 '14 at 19:42
is that how the scripting behind 'toggle' feature are written? – harayz Jan 27 '14 at 19:59
Toggle features? If you mean like settings within Ubuntu, no, it's a bit more complicated than that. – Seth Jan 27 '14 at 20:00
I figured I'd put the actual command here, it's killall -STOP java to freeze the process and killall -CONT java to resume it. You could also use kill if you knew the process ID. Not sure how to toggle it, though, and I doubt that that's the answer you're looking for. How do you terminate the server? Is it a GUI or a CLI app? – Hitechcomputergeek May 18 '15 at 3:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.