Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Last active November 1, 2022 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palaniraja/a132811e48cfb6a69efea0d8463eac98 to your computer and use it in GitHub Desktop.
Save palaniraja/a132811e48cfb6a69efea0d8463eac98 to your computer and use it in GitHub Desktop.
Geek tool scripts I use with my desktop
# to list todo's from todotxt file - refersh every 900 sec
cat /Users/palaniraja/Dropbox/Personal/orgmode/todo.txt | grep -v ^x\ | cut -c 12- | awk '{print "* " $0}'
# calendar events - next 5 days grouped by date - refresh every 1800 sec
/usr/local/bin/icalbuddy -nc -sd eventsToday+5
# previous month - refersh every 3600 sec
cal `date -v -1m "+%m %Y"`
# current month with today highlighted - refersh every 3600 sec
cal_head=`cal | head -1`; cal_tail=`cal | tail -7`; today=`date "+%e"`; echo "$cal_head"; echo "${cal_tail/${today}/\033[1;32m${today}\033[0m}";
# high-seirra
cal_head=`cal -h | head -1`; cal_tail=`cal -h | tail -7`; today=`date "+%e"`; echo "$cal_head"; printf "${cal_tail/${today}/\033[1;32m${today}\033[0m}"
# next month - refersh every 3600 sec
cal `date -v +1m "+%m %Y"`
@palaniraja
Copy link
Author

cal -h -A4 -B4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment