Pinterest Stumbleupon Whatsapp
Ads by Google

automate ubuntuAutomate things you’re currently doing yourself. Cuttlefish is a new Ubuntu program that allows you to set simple rules that can save you time. It’s kind of like ifttt, which automates your web apps If This Then That: Connect & Automate Any Two Of Your Favorite Web Apps If This Then That: Connect & Automate Any Two Of Your Favorite Web Apps Connect any two of your favorite web apps in creative ways. A sort of "digital duct tape" according to Linden Tibbets, the app's creator, If This Then That (ifttt) lets you find new uses for... Read More , but works entirely on your Ubuntu desktop.

You’ve heard it said: every action has an equal and opposite reaction. Cuttlefish isn’t built on that principle exactly, but it is built around stimuli that trigger actions. You can pick a stimulus – for example, connecting to a certain wireless network – and assign a reaction to it – for example, opening your web browser. These pairings are called reflexes, and with some creativity they can save you a lot of time. There’s no limit to the number of actions a reflex can have, meaning any one stimulus can trigger several simultaneous actions.

You don’t even need an action to react to: groups of commands can be launched manually from the menu.

Confused? Don’t be; it’s actually very easy to use, and no programming skills are required to use this GUI-based tool.

Getting Started

The best way to explain Cuttlefish is to try a few things. When I connect to the Internet the first thing I want to do is open a web browser, so why not use Cuttlefish to automate the process? I start Cuttlefish and create a new reflex. I turn on activation by stimulus and pick my stimulus:

automate ubuntu

Ads by Google

In this case my stimulus will be connecting to Wifi, but there are serveral options. Once you’ve picked your stimulus you might be able to configure more details. In my case, I can pick a particular wireless network to connect to:

automate ubuntu tasks

I’ve decided to trigger the action only when connecting to my personal network. So now I’ve set my stimulus. This means it’s time to set my reaction. Again, there are several options:

automate ubuntu tasks

I’m interested in launching a program, so I choose that action. When I do I’m free to pick my program from a simple menu, and I’ve set up my reaction.

automate ubuntu tasks

List of Stimuli and Actions

So what kind of triggers can you set up? Anything that combines the stimuli and actions defined below:

Stimuli

  • Application starts
  • Application stops
  • Bluetooth activated
  • Bluetooth deactivated
  • Bluetooth device connects
  • Bluetooth device disconnects
  • Connect to WLAN
  • Disconnect from WLAN/LAN
  • Power cable plugged in
  • Power cable unplugged
  • Screen is locked
  • Screen is unlocked
  • USB device plugged in
  • USB device unplugged

Actions

  • Activate Bluetooth
  • Activate reflex
  • Activate WLAN
  • Change default printer
  • Change desktop background
  • Change pidgin status
  • Change proxy mode
  • Change volume
  • Deactivate Bluetooth
  • Deactivate reflex
  • Deactivate WLAN
  • Hibernate
  • Lock screen
  • Reboot
  • Shutdown
  • Start application
  • Start application (advanced mode)
  • Stop an application
  • Suspend
  • Unlock screen
  • Wait

Of course this list will change; more stimuli and actions will be added. Install the software for a complete list, because I cannot currently find one online to link to.

Think of Ideas!

What Cuttlefish can do for you depends entirely on your imagination. I thought of a few things, including shutting down Dropbox when I’m offline and giving myself one link to launch my IM and Twitter clients at the same time.

automate ubuntu

Spend some time playing with the software and figure out what it can do, then come back here and share your ideas below so everyone else can benefit.

Installing Cuttlefish

Cuttlefish will be in the Ubuntu Software Center soon, so check there first. If you can’t find it, don’t panic: there’s a Cuttlefish PPA. Use these commands to add the PPA to your system and install Cuttlefish:

sudo add-apt-repository ppa:noneed4anick/cuttlefish
sudo apt-get update
sudo apt-get install cuttlefish

The first command will add the PPA; the second, updates your sources list; the third, installs Cuttlefish. If you’re uncomfortable with the commandline you could try Y PPA Manager Y PPA Manage: A GUI For Managing Ubuntu PPAs [Linux] Y PPA Manage: A GUI For Managing Ubuntu PPAs [Linux] Do you want to avoid using the command line when installing bleeding edge software? Then manage your Ubuntu PPAs from a simple GUI with Y PPA Manager. Ubuntu users get their software from the Ubuntu... Read More instead.

Sorry, users of other Linux distros: I cannot find packages for you guys yet.

I’m enjoying playing with Cuttlefish a great deal, and will put any new ideas I come up with in the comments below. I hope you’ll join me and we can use this page to share and collaborate on ideas.

  1. Rodrigo
    June 12, 2016 at 2:40 pm

    A command to distribute programs to different workspaces. There was a program called 'devilspie', which does not work as it is not maintained anymore.

    Thank you

  2. Gavin Britton
    October 24, 2012 at 8:10 pm

    i like the idea, i use Tasker on my android phone and this seems even easier to use. thanks.

  3. josemon maliakal
    August 9, 2012 at 4:45 pm

    This is a kind of good application

  4. Dan Worwood
    July 27, 2012 at 2:36 am

    So does this mean I can find it on mint?

    • Mart Küng
      July 27, 2012 at 5:58 pm

      Well try anf let others know.

      • Justin Pot
        July 27, 2012 at 11:46 pm

        It's possible, but no one is making any promises that it will work.

  5. Joe Johaneman
    July 26, 2012 at 8:24 pm

    I've been using Debian for a few weeks now. While this looks like Ubuntu only, it'll probably work in Debian. There is a tarred gzip that can be downloaded from Launchpad. It might be possible to make it work with other varieties of linux. It's written in python. I'm on my Mac now, not my Debian box, so I can't text it. But you can download it here: https://launchpad.net/cuttlefish

    Then extract it: tar -xvzf cuttlefish*.tar.gz

    cd into the newly created directory and type

    sudo python setup.py

    And see if it works!

    • Justin Pot
      July 27, 2012 at 11:47 pm

      Let me know if it works for you; it seems like it's mostly being built for Ubuntu for now.

Leave a Reply

Your email address will not be published. Required fields are marked *