Lazy programmers do…

Thursday, July 30th 2009, 16:21

Scripts to avoid clicking in three places once they start their computer:

#!/bin/bash
firefox mail.cotescu.com &
thunderbird &
pidgin &
sleep 5s
purple-remote "setstatus?status=available&message=http://radu.cotescu.com"
exit 0

This starts those three programs in the background once I log in provided that I add this script in System – Preferences – Startup Applications in Ubuntu.

Similar Posts:

3 Comments

  • You can add some lines to check new mails, make summary for all of them, get the offline messages, make summary for them too, check google reader, summarize all the new posts in a huge one, then text all the summaries to your mobile.
    And you just saved some beach hours :D

    • I am currently working at a device that will write all the code I would ever want to write for me.

  • You can try fortune for the status message :P and add your blog link afterwards.

    purple-remote "setstatus?status=avaiable&message=`fortune` http://blog.motane.lu"

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


CODE EXAMPLES: When you want to include source code or terminal output, please use the the following tags like in the next example:

    [language]
    code lines
    [/language]
	

where you substitute language with the programming laguage used throught the code example (for terminal output that would be bash), e.g:

    [bash]
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [/bash]
	

To see a list of all the supported languages, please check this page.

If you want to include code bits inline, please use the code tags like in the following example:

    The <code>$USER</code> variable holds the current logged in username.
	

Secure your files

Dropbox

Recent Comments

  • Radu said:
    I think you have a corrupted archive. Try to download it again. more»
  • Ronny Ko said:
    I have a gigabit Dlink card ( D-Link System Inc DGE-530T Gigabit Ethernet Adapter (rev 11) (rev 11)). When I first run... more»
  • al.zatv said:
    Calin, thank you for your info. web face for virtualbox is the thing i was looking for. more»
  • djrise said:
    Hi and thank you for your job, I have downloaded the script but when i execute them it said : sh vmware-server-2.0.x-kernel-... more»
  • Xr said:
    Disabling vmci in the web access solved it: Select the VM–>ConfigurationR 11;>Advanced–>Conf iguration... more»

Recent Tweets

Geek blogs

Bear