SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-01-13 22:46:48

jake_ks
New Member
Registered: 2014-01-13
Posts: 6

How to quickly execute a command?

I use asana.com to manage my todo list.  I installed this cli to work with asana: https://github.com/tmacwill/asana-client
I then set up the necessary alias in my .bashrc so that from the terminal I can enter:

task TITLE OF NEW TASK

and it gets quickly added to my asana inbox.  I would like to figure out a very quick way to run this command from anywhere (like I would have with Alfred or quicksilver in OS X).  Unfortunately using gmrun (alt+f2) and entering "task foo" results in an error.

My ideal workflow is that I am in another app, I think of a todo and I hit a hotkey, enter my task text and return. while not ideal I would be ok with using my "task" alias above.

Any ideas how to set that up so I can create tasks as quickly as possible?

Thanks!

Offline

Be excellent to each other!

#2 2014-01-13 23:16:40

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 4,440

Re: How to quickly execute a command?

What error are you getting?

Should be easy enough to script something with eg zenity: keybind to open an input box, input your text, Y/N/Cancel and off you go smile


Artwork at deviantArt;  Iceweasel Personas;  SLiM #! Themes;  Openbox themes

Offline

#3 2014-01-14 00:54:11

jake_ks
New Member
Registered: 2014-01-13
Posts: 6

Re: How to quickly execute a command?

Zenitty looks like it could work nicely. Thanks!

Offline

#4 2014-01-14 17:00:40

jake_ks
New Member
Registered: 2014-01-13
Posts: 6

Re: How to quickly execute a command?

By means of followup, Zenity was the perfect solution:

<keybind key="C-space">
      <action name="Execute">
        <command>sh -c 'asana WORKSPACE $(zenity --entry --text "Enter asana task" --width=500)'
</command>
      </action>
    </keybind>

Thanks Damo

Offline

#5 2014-01-14 17:12:25

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 4,440

Re: How to quickly execute a command?

hth smile


Artwork at deviantArt;  Iceweasel Personas;  SLiM #! Themes;  Openbox themes

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo