mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
update where we keep our cron jobs
This commit is contained in:
parent
d3f8c94c0c
commit
9ab65f2936
5 changed files with 5 additions and 37 deletions
91
.config/cron/alarms.sh
Executable file
91
.config/cron/alarms.sh
Executable file
|
@ -0,0 +1,91 @@
|
|||
#!/usr/bin/env bash
|
||||
# Simple script by JesseBot@linux to remind you to stop working
|
||||
ALARM_TYPE=$1
|
||||
SILENCE=$2
|
||||
|
||||
case $ALARM_TYPE in
|
||||
work_start_soon)
|
||||
banner_msg="Work Starts Soon"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "It's almost time to start work. Save your place and make some" \
|
||||
"follow up notes." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
work_start)
|
||||
banner_msg="Go To Work"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "It's time to start working. Open your work laptop, and clock" \
|
||||
"in: Fill in timesheet, say good morning in chat, check emails," \
|
||||
"and open important tickets." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
lunch)
|
||||
banner_msg="Take your Lunch!"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "It's time to take lunch! Go have a protein shake and or a" \
|
||||
"salad, or order something healthy to snack on during your" \
|
||||
"break, and use the time to do something for yourself" \
|
||||
":3" >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
lunch_end_soon)
|
||||
banner_msg="Lunch Hour Ends Soon."
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "Your lunch hour ends soon, so you should save what you're" \
|
||||
"doing, and make a note to follow up on any" \
|
||||
"loose ends." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
lunch_end)
|
||||
banner_msg="Lunch is over."
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "Lunch has ended. Report back to work now." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
break)
|
||||
banner_msg="Take a 5 minute break."
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "Take a 5 minute break. Get some water or green tea and perhaps" \
|
||||
"a small snack, a smackoroo, if you will." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
work_end_soon)
|
||||
banner_msg="Working Hours End Soon"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "It's almost time to stop working. Find a stopping place." \
|
||||
"Update your tickets. Save any important open tabs to your" \
|
||||
"bookmarks. Send that last email or message." >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
work_end)
|
||||
banner_msg="Working Hours Complete"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "It's time to STOP WORK! Close all programs, except your time" \
|
||||
"sheet. Fill in your timesheet, and sign off. Close your work" \
|
||||
"laptop 🎉 " >> /tmp/wall_notice
|
||||
;;
|
||||
|
||||
work_end_serious)
|
||||
banner_msg="Stop Working!!"
|
||||
figlet -c -f banner $banner_msg > /tmp/wall_notice
|
||||
echo "Over time is not worth it. You have a life outside of work." \
|
||||
"Seriously, do something else. You're more than the" \
|
||||
"productivity you give your job. Take that back for" \
|
||||
"yourself. Make or order dinner. Hang out with your friends." \
|
||||
"Do some personal hobby. Be more than work." >> /tmp/wall_notice
|
||||
;;
|
||||
esac
|
||||
|
||||
# print the text in all logged in, terminals
|
||||
wall /tmp/wall_notice
|
||||
|
||||
# If on Mac use the say program to speak the notice outloud.
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
# if they set a second variable then silence the alarm
|
||||
if [ ! -z "$SILENCE" ]; then
|
||||
say -f /tmp/wall_notice
|
||||
# if they have this file in thier home directory, also silence the alarm
|
||||
elif [ ! -e "$HOME/.alarm_silence" ]; then
|
||||
say -f /tmp/wall_notice
|
||||
fi
|
||||
fi
|
18
.config/cron/reminders_crontab
Normal file
18
.config/cron/reminders_crontab
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Start working for the day soon
|
||||
0 8 * * * ~/cron/alarms.sh work_start_soon
|
||||
# Work has begun! at 9:00
|
||||
0 9 * * * ~/cron/alarms.sh work_start
|
||||
# Lunch at noon each day
|
||||
0 12 * * * ~/cron/alarms.sh lunch
|
||||
# Reminding that lunch ends soon
|
||||
45 12 * * * ~/cron/alarms.sh lunch_end_soon
|
||||
# Lunch over at 13:00
|
||||
0 13 * * * ~/cron/alarms.sh lunch_end
|
||||
# Short Break at 14:00
|
||||
0 14 * * * ~/cron/alarms.sh break
|
||||
# Stop working for the day 17:55
|
||||
55 17 * * * ~/cron/alarms.sh work_end_soon
|
||||
# Stop working for the day 18:15
|
||||
15 18 * * * ~/cron/alarms.sh work_end
|
||||
# Remind user to hang out with their friends 19:00
|
||||
00 19 * * * ~/cron/alarms.sh work_end_serious
|
|
@ -1 +1,5 @@
|
|||
onboardme -s dot_files -s packages -s font_setup -s neovim_setup -p brew -p pipx -p pip3.12 -g default -g default
|
||||
# update dot files, package managers, and neovim
|
||||
onboardme -s dot_files -s packages -s neovim_setup -p brew -p pipx -p pip3.12
|
||||
|
||||
# update tldr
|
||||
tldr --update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue