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.

You might also like:

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

  • 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>


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.
	

Projects that I support

Recent Comments

  • nope said:
    yeah that was my first thought too, but: mount: warning: seems to be mounted read-write. too bad, would have been just perfect. more»
  • Klaus Deiss said:
    Dear Radu, I tried it on Ubuntu 10.0.4.2 and 10.0.4.3 with different kernel versions (amd64 server 2.6.32 kernel). No... more»
  • scompo said:
    Nope.. Now it’s not working again.. This printer it’s a real pain in the butt.. The other hp printer I had... more»
  • Dmitrij said:
    Thank you Peter and Patrice. Could you please post the updated script? more»
  • hd_flash_pains said:
    didn’t work for me more»

Recent Tweets

Bear