0

I recently installed easystroke on my Ubuntu 14.04 LTS system. I want to add a shortcut stroke for the same. Can you guys tell me what command to use? location of android studio is

/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh

for other apps like firefox i use

 wmctrl -a Firefox || firefox

but this does not work for android studio

also

xdg-open of /home/.... 

opens the bash file in text editor instead of terminal..

Pls help me out guys

0

With this command:

wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"

Use the full path with double quotes.


from man wmctrl

   -a <WIN>
          Switch to the desktop containing the window <WIN>, raise the window, and  give  it
          focus.


   <WIN>  This argument specifies a window that is the target of an action. By  default  the
          argument  is  treated  as  if were a string, and windows are examined until one is
          found with a title the contains the specified string as a substring. The substring
          matching  is done in a case insensitive manner. The -F option may be used to force
          exact, case sensitive title matching. The option -i may be used to  interpret  the
          window target as a numeric window identity instead of a string.
  • for some weird reason it didn work at first . now it works like a charm. – Chris Aby Antony Jul 1 '15 at 9:51
0

Try this:

xdotool type "sh '/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh'" ; xdotool key KP_Enter

if not work try this then:

wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"
  • sorry bt that didnt work :( – Chris Aby Antony Jul 1 '15 at 9:36
  • @ChrisAbyAntony check my edit – Maythux Jul 1 '15 at 9:38
  • Had we really the same idea at the same time? =) – A.B. Jul 1 '15 at 9:43
  • @A.B. It's really not my idea , I just use this timelessguru.com/easystroke :) – Maythux Jul 1 '15 at 9:45
  • yeah this works perfect but seems that A.B. posted it first – Chris Aby Antony Jul 1 '15 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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