Last active
November 1, 2022 21:29
-
-
Save palaniraja/a132811e48cfb6a69efea0d8463eac98 to your computer and use it in GitHub Desktop.
Geek tool scripts I use with my desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment