From 1c554f6862449baf859a1fee2fc3fcfa58813ed7 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 10 Nov 2020 23:21:19 -0700 Subject: [feat] Add taskwarrior configuration --- base/task/task.triggers | 167 ++++++++++++++++++++++++++++++++++++++ base/task/taskwarrior-holidays.rc | 44 ++++++++++ base/task/taskwarrior-holidays.sh | 17 ++++ 3 files changed, 228 insertions(+) create mode 100644 base/task/task.triggers create mode 100644 base/task/taskwarrior-holidays.rc create mode 100755 base/task/taskwarrior-holidays.sh (limited to 'base/task') diff --git a/base/task/task.triggers b/base/task/task.triggers new file mode 100644 index 0000000..da0f905 --- /dev/null +++ b/base/task/task.triggers @@ -0,0 +1,167 @@ +School +- Projects started, not completed +- Projects that need to be started +- Commitments/promises to others +- Teachers/TAs +- Roommates +- Classmates +- Friends +- Underclassmen +- Upperclassmen +- "Outside" people +- Parents +- Campus organizations +- Extracurricular organizations +- Graduates +- Communications to make/get +- Internal/External +- Initiate or respond to: +- Phone calls +- Text messages +- Voice-mail +- E-mail +- Snail mail +- Social Media +- Other writing to finish/submit +- Reports +- Papers +- Reviews +- Assignments +- Articles +- Readings +- Rewrites and edits +- Meetings that need to be set/requested +- Financial +- Tuition +- Financial aid +- Textbooks +- Dining +- College Expenses +- Other Expenses +- Dorm Room/Apartment +- Rent +- Maintenance +- Utilities +- Food +- Clothes +- Furniture +- Decorations +- Additional Supplies +- Waiting for... +- Information +- Delegated tasks/projects +- Completions critical to projects +- Replies to: +- Letters +- Texts +- Calls +- Social Media +- Reimbursements +- Ordered items +- Items being repaired +- Tickets +- Decisions of others + +Personal +- Projects started, not completed +- Projects that need to be started +- Commitments/promises to others +- Significant Other +- Family +- Friends +- Classmates +- Borrowed items +- Projects: other organizations +- Service +- Civic +- Volunteer +- Communications to make/get +- Family +- Friends +- Professional +- Initiate or respond to: +- Phone calls +- Text messages +- Voicemail +- E-mail +- Snail mail +- Social Media +- Upcoming events +- Special occasions +- Birthdays +- Anniversaries +- Weddings +- Graduations +- Holidays +- Travel +- Weekend trips +- Vacations +- Social events +- Cultural events +- Things to do +- Places to go +- People to meet/invite +- Local attractions +- Administration +- Financial +- Bills +- Banks +- Investments +- Loans +- Taxes +- Insurance +- Legal affairs +- Filing +- Waiting for... +- Mail order +- Repair +- Reimbursements +- Loaned items +- Medical data +- RSVPs +- Home/household +- Landscape +- Kitchen things +- Washer/dryer/vacuum +- Areas to organize/clean +- TV +- VCR/DVD +- Music/CDs/tapes +- Phones +- Closets/clothes +- Vehicle repair/maintenance +- Tools +- Luggage +- Computers +- Software +- Hardware +- Connections +- CD/DVD Drive +- E-mail +- Internet +- Social Media +- Health care +- Doctors +- Dentists +- Specialists +- Hobbies +- Books +- CDs +- MP3s +- Podcasts +- Videos +- Apps +- Errands +- Hardware store +- Pharmacy +- Supermarket +- Bank +- Cleaner +- Bookstore +- Library +- Clothing store +- Community +- Neighborhood +- Schools +- Local government +- Civic issues diff --git a/base/task/taskwarrior-holidays.rc b/base/task/taskwarrior-holidays.rc new file mode 100644 index 0000000..db3b788 --- /dev/null +++ b/base/task/taskwarrior-holidays.rc @@ -0,0 +1,44 @@ +holiday.en-US1.name=New Year's Day +holiday.en-US1.date=20200101 +holiday.en-US2.name=Birthday of Martin Luther King, Jr. +holiday.en-US2.date=20200120 +holiday.en-US3.name=Washington's Birthday +holiday.en-US3.date=20200217 +holiday.en-US4.name=Memorial Day +holiday.en-US4.date=20200525 +holiday.en-US5.name=Independence Day +holiday.en-US5.date=20200704 +holiday.en-US6.name=Labor Day +holiday.en-US6.date=20200907 +holiday.en-US7.name=Columbus Day +holiday.en-US7.date=20201012 +holiday.en-US8.name=Veterans Day +holiday.en-US8.date=20201111 +holiday.en-US9.name=Thanksgiving Day +holiday.en-US9.date=20201126 +holiday.en-US10.name=Day after Thanksgiving +holiday.en-US10.date=20201127 +holiday.en-US11.name=Christmas Eve +holiday.en-US11.date=20201224 +holiday.en-US12.name=Christmas Day +holiday.en-US12.date=20201225 +holiday.en-US13.name=New Year's Day +holiday.en-US13.date=20210101 +holiday.en-US14.name=Birthday of Martin Luther King, Jr. +holiday.en-US14.date=20210118 +holiday.en-US15.name=Washington's Birthday +holiday.en-US15.date=20210215 +holiday.en-US16.name=Memorial Day +holiday.en-US16.date=20210531 +holiday.en-US17.name=Independence Day +holiday.en-US17.date=20210704 +holiday.en-US18.name=Labor Day +holiday.en-US18.date=20210906 +holiday.en-US19.name=Columbus Day +holiday.en-US19.date=20211011 +holiday.en-US20.name=Veterans Day +holiday.en-US20.date=20211111 +holiday.en-US21.name=Thanksgiving Day +holiday.en-US21.date=20211125 +holiday.en-US22.name=Christmas Day +holiday.en-US22.date=20211225 diff --git a/base/task/taskwarrior-holidays.sh b/base/task/taskwarrior-holidays.sh new file mode 100755 index 0000000..97ddb4a --- /dev/null +++ b/base/task/taskwarrior-holidays.sh @@ -0,0 +1,17 @@ +#/bin/bash + +YEARNOW="$(date +%Y)" +YEARNEXT="$(date -d "next year" +%Y)" + +(echo "["; +curl -s https://holidata.net/en-US/$YEARNOW.json | sed "s/$/,/g"; +curl -s https://holidata.net/en-US/$YEARNEXT.json | sed "s/$/,/g" | head -c-2; +echo "]") | jq -r 'map(select(.region == "")) | to_entries | + map((.key+1 | tostring) + "\t" + .value.description + "\t" + .value.date) | .[]' | +while read e; do + INDX="$(echo "$e" | cut -f1)" + NAME="$(echo "$e" | cut -f2)" + DATE="$(echo "$e" | cut -f3 | tr -d "-")" + echo "holiday.en-US$INDX.name=$NAME" + echo "holiday.en-US$INDX.date=$DATE" +done -- cgit v1.2.3-70-g09d2