alias | tags | cssclass |
---|---|---|
Main: Related:
# Huge thanks to Rythm for the original code | |
# that I adapted for this script | |
# Source: https://j.mp/2UPeDJh | |
import os.path | |
import datetime | |
FILE_PATH = "/path/to/vault/directory/" | |
TODAY = datetime.datetime.today() | |
LAST_UPDATE = "{:%A %d %B, %Y at %H:%M}".format(TODAY) |
#!/usr/bin/env python3 | |
from pathlib import Path | |
from PIL import Image | |
from rich.console import Console | |
from rich.traceback import install | |
# Add support for Rich traceback formatting | |
install(show_locals=True) |
# I'll be doing another one for Linux, but this one will give you | |
# a pop up notification and sound alert (using the built-in sounds for macOS) | |
# Requires https://github.com/caarlos0/timer to be installed | |
# Mac setup for pomo | |
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
-title 'Work Timer is up! Take a Break 😊'\ | |
-appIcon '~/Pictures/pumpkin.png'\ | |
-sound Crystal" |