
If you’re using my Google Writing Tracker scripts and want to use the wstats command, you’ll either have to modify your spreadsheet, or fork the wstats command on GitHub and modify it to your tastes. Keep in mind, however, that the script expects the Writing stats spreadsheet to be in a very specific format. Yes, I will make my wstats.py Python script available on GitHub as part of my Google Writing Tracker project, once I have it cleaned up a bit (I only wrote it today!). This gives me a very useful, but clean looking desktop. The rest is simply formatting the widgets and arranging them as I want them to appear on the screen. That latter is the command I use in GeekNote to produce the “Words written yesterday.” To produce my 7-day moving average, I use: wstats -aĪnd to produce the number of consecutive days of writing, I use: wstats -c For instance, if I just want the word count from yesterday, I can do: wstats -w I can also specify any one element, as opposed to all elements. So I can quickly see that I wrote 2,259 words on my birthday. The last two numbers (consecutive and total days of writing) are current. The first three numbers are for that day. If I wanted to see the stats for my birthday last year, I can do: wstats -d I can run the command for any date by adding a -d. For example, if I want to see my writing stats for yesterday, all I have to do is type: wstats I spent this afternoon writing a Python command that I call “wstats” that works very similar to how “wc” works, except it reads data from my Google Spreadsheet. The resulting stats are stored in a Google Spreadsheet. Over the summer I posted a set of Google App scripts to GitHub that I use to track my writing in Google Docs. To produce this information on my desktop, I run a command that parses the contents of that file: cat /Users/jamietr/Dropbox/Public/now.txt | sed 's/(.*)\(.*\)/\1/'Īnd this gives me the title and author of the book I’m currently reading.
#Geektool display date code
I wrote yesterday of how I keep a now.txt file that contains the title, author and Amazon product code of the book I’m currently reading. Since I have one book per line, whatever that number of resulting lines is represents the number of books I’ve read so far this year. The -l says to count the number of lines int he results. It then filters the results through the “wc” command, which is the word count command. To produce the number of books that I’ve read so far in the current year is as simple as running the following command: grep `date '+%Y'` ~/Dropbox/Public/reading.txt | wc -lįor those who don’t speak UNIX, all this command does is searches for anything in my reading.txt file that contains the current year. And I can also use simple UNIX commands to extract additional information. I can parse it to produce my formatted reading list page. Because it is plain text, it can be easily manipulated. I’ve explained how my main reading list is a plain text file that I keep in Dropbox. Reading/writing metrics Books read this year
#Geektool display date zip
It basically parses Yahoo’s weather for your zip code and produces a simple result. I got the latter from a repository of GeekTool scripts. I used three different simple shell scripts to produce the date/time/weather section of my desktop:Īnd for the weather: curl -silent "" | grep -E '(Current Conditions:|F//' -e 's///' -e 's///' -e 's///' -e 's///' -e 's/\(.*\) F/\1° F/' -e 's///' GeekTool allows you to run shell commands and render the results as widgets that are embedded into your desktop. This means that I never have to look further than my desktop to see what is on my to-do list. I embedded this into my desktop using GeekTool, and it updates automatically as my to-do list changes. basically, it shows you what you completed yesterday (or the last day on which you completed a task) and what is still on your list. I use todo.txt to manage my to-do list, and there is a little add on that takes your to-do list and produces a rundown. You’ll note I’ve made 3 annotations on the image. I found a cool typing paper background and an old typewriter font to give it some flavor. I use multiple “desktops” but all of them have the same basic look as above. I have a 27″ iMac so my screen is pretty big. Click on the image to see a larger version. And thanks to the fact that my to-do list is based on text files, and that I use text files for many other things, it was fairly easy to include some real-time analytics embedded into my desktop via GeekTool.


I spent this afternoon giving my desktop a long-overdue makeover. Every now and then, I need a change of scenery, and that includes what I see on my computer desktop.
