Lazy programmers do…

Posted on July 30th, 2009 at 16:21, in Code, Linux, Ubuntu.

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

vlad said

on July 30th, 2009,

at 16:40 hours

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

Radu said

on July 30th, 2009,

at 17:19 hours

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

Tudor said

on August 6th, 2009,

at 10:17 hours

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"

Think you've got something to say?

For leaving comments including 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:/usr/games
[/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.

Subscribe without commenting


Bear