Due to my lack of memory, I made a conkyrc that helps me remember where I am (and am not) working right now.

The idea was this: I want something to show me my git repositories’ statuses. Without bells and whistles, without tons of configurations. Just the project’s name and its last commit’s info. And it needs to be in my desktop for me to see it as soon as I get on the computer.

And the result was this:



I got 0x6c756b65‘s `conkyrc` and made some modifications. The source code can be seen at The Git, The Conky and The Minimal‘s GitHub repository.

What I’ve made was figure out how to separate the information in sections (for projects of different contexts) and, of course, figure out the correct formatting for the information.

The git magic relies on the following lines:



git --git-dir /path/to/the/repo/.git\

log --abbrev-commit --date=relative --format=format:'%s [%ar]'\

--all --max-count=1



It selects the last commit, gets its first line, gets its relative date and format it like this:



CONKYRC: adding new project [2 days ago]

+--------commit msg-------+ +---date---+



The `git log` command is run every 8 seconds.

And that’s how I solved my problem of “when was the last time I’ve worked on that project?”.