PDA

View Full Version : Disable Easystroke command



hariks0
September 13th, 2010, 06:52 PM
Does anybody know if Easystroke could be disabled/enabled from command line. A status toggle or 'Start disabled' option will also do.

Thanks in advance.

hariks0
September 16th, 2010, 06:53 AM
Bump.

stinkeye
September 16th, 2010, 10:10 AM
In your easystroke preferences you can choose to display a tray icon
which gives you a right click disable option.

hariks0
September 16th, 2010, 10:23 AM
That is what I am doing at present. What I want is an option to start it disbled, so that I will not have to disable after every login and just enable from the tray icon. Other wise I will have to remove it from startup and invoke it manually whenever required.

The reason is, I am using Button1 for easystrokes.

hariks0
October 31st, 2010, 05:58 PM
Bump.

ragtag
October 31st, 2010, 06:55 PM
I'm not sure you can do this in an easy way, without digging into the source of easystroke. The man page for easystroke gives no option for starting it disabled from the command line.

What you can do is set up a gesture for disabling easystroke. Just pick Type>Misc, and choose Disable (Enable) from the menu. This is quicker than clicking the icon. Of course, once disabled, you cant use the gesture to re-enable it. :)

Maybe someone else has a better solution.

hariks0
November 1st, 2010, 01:32 AM
Thank you so much. It almost serves my requirement. A solution as per the Original post is welcome, though.

:popcorn:

semidark
May 1st, 2011, 03:01 PM
there is a solution. You can trigger easystroke actions via the bash.

So add an action that ist called toggle_active that disables or enables easystroke.

In bash:

easystroke send toggle_active

Done ;)

hariks0
May 2nd, 2011, 06:09 PM
A script file with the following content did not work


#!/bin/bash
easystroke send toggle_active

Can you please provide the correct method for doing this?

TIA.

hariks0
May 4th, 2011, 06:06 PM
Bump !

hariks0
May 17th, 2011, 02:11 AM
A script file as per this post (http://ubuntuforums.org/showthread.php?p=10768664#post10768664) with the following content did not work

Code:

#!/bin/bash
easystroke send toggle_active

What I want is master gesture to enable/disable Easystroke. Once it is disabled, it should listen for occurrence of the master gesture alone.

Can you guys please provide the correct method for doing this?

TIA.

cariboo
May 17th, 2011, 03:40 AM
Please don't create multiple threads on the same subject, I have merged your two threads.

hariks0
May 21st, 2011, 12:41 PM
Bump !

hariks0
May 30th, 2011, 06:05 PM
Bump again ! :(

Enterpart
September 2nd, 2011, 12:12 AM
how about this


killall easystroke; xte 'sleep 5'; easystroke

you would need xautomation


sudo apt-get install xautomation

it will close easystroke and open it in 5 seconds, or you can change to any delay you want

MadCow108
September 2nd, 2011, 01:43 AM
Bump again ! :(

apparently nobody knows of a built in solution.
So scratch your own itch!
get the source and add the feature yourself
If you are unfamiliar with the programming language, see it as an opportunity to learn.