GeekTool Part II - To Do List

And they asked him, “Are you the one who is to come, or shall we look for another?” And Jesus answered them, “Go and tell John what you hear and see: the blind receive their sight and the lame walk, lepers are cleansed and the deaf hear, and the dead are raised up, and the poor have good news preached to them. Blessed is the one who is not offended by me.”

Matt 11:3-6

I'm a teacher by vocation and gifting; I love to teach. By corollary, I love to learn. I'm curious about everything and I have a blast learning about almost anything. Over the years, I've picked up quite a bit of information through the Internet. This website is my simple attempt to pay back; to contribute to the community and try to make the interwebs a better place.

As such, I don't require registration. I don't want your personal information. I don't set cookies. I won't put up advertisements. If I mention a product or service, it's because I use it, benefit from it, and I think others would too. I don't need, or want, your money. I simply want to offer some information to other curious characters.

I'm writing this site as an experiment. It's all written in a text editor. I make my own graphics, write my own JavaScript, CSS, PHP, and HTML from scratch because I'm trying to learn more about how all these pieces fit together. I use TextWrangler because I think it's a great text editor and it does everything I want in a very simple and efficient way.

If you want to contact me, try FaceBook or Twitter.

May 3, 2013

There are several pages dealing with my to do list set of scripts. I've been living with this setup for almost two years now and it is the best way that I've found to actually use a to do list. You don't have to leave what you are working on to add/edit/delete to do items (thanks Quicksilver), it syncs across devices (via dropbox) and it is just a simple text file so it isn't in some proprietary file format. This document is about how to set up GeekTool to display the list. Before we get into the nuts and bolt, here is a screenshot of my current desktop featuring my one of my daughters that will be getting married later this month.

Isn't she cute? On to the list--start up GeekTool and drag an empty shell geeklet onto the desktop. Open the codewindow and type in the following bash commands:

#! /bin/sh ~/pathToScript/ r head -n 20 ~/pathToFile/todo.txt echo echo ______________________ echo echo "Today:" /usr/local/bin/icalBuddy -iep "location, notes, datetime, title" -nc eventsToday | sed -e "s/*/--/" | sed -e "s/!/!!/" echo Echo "Coming up:" /usr/local/bin/icalBuddy -nc -eep "*" eventsFrom:tomorrow to:tomorrow+2 | sed -e "s/*/--/" | sed -e "s/!/!!/"

You'll need to edit the file paths to match where you put your python script and todo text file. I also use icalBuddy to display upcoming items from my calendar. If you don't want to mess with it just delete everything below the line. I call the python script with the argument to renumber the list. I display the first 20 lines of the todo list using the head command. I use the head command rather than just using a file geeklet because the file geeklet will repeat the display of the lines in your to do list. Set the font and refresh rate to whatever makes you smile (mine is 15 s).

That's pretty much it for the GeekTool portion of the to do list.

All content and graphics copyright (c) 2012-2017 Brian Dentler - all rights reserved.