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

An application I use requires me to hold LMB pressed for very long time. This may be uncomfortable. Is there any way, to get mouse button stay pressed event though I have released? A toggle-like behavior would be okay.

share|improve this question
up vote 1 down vote accepted

I don't think I know of any tools that does exactly that, but you can use xdotool mousedown and xdotool mouseup . So I suppose you'd want a script that sets mousedown or up when run, and then run that script by pressing another mouse button or something.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.