wl
wl - Work Logger, a ksh-based set of functions to help log time based on tmux sessions.
This script is written in POSIX sh and based in OpenBSD (as well as the makefile).
Installation
git clone https://github.com/desnudopenguino/wl.git
cd wl
make local
- install the script to your local (~/bin/) directorymake init
- initialize your local filesystem (~/work_logs)
Files of interest
- '~/work_logs/.tex/example.conf' - an example client's config contains their name, rate, type of service, and email for sending invoices
- '~/work_logs/.tex/.conf' - the base config for your settings including mailgun API key and template name, send email, and bcc email for sending invoices
Dependencies
- tmux - this is how the work logs are more or less managed.
- vim - for editing files (
wl -e
) - texinfo (texi2pdf) - to compile invoices (
wl -x
) - a MailGun subscription - to send invoices via email
- curl - to send API call to send email through MailGun
- tex packages (I found them installing "texlive_texmf-full" on OpenBSD)
- fp
- calc
- longtable
- graphicx
Get Started
- Start up a tmux session
tmux new -s example
- Create a new wl csv
wl -n
- Make some entries
wl -s
- to start a time blockwl -f "<some comment>"
- to finish a time blockwl -e
- to edit a time block - Export to pdf
wl -x
- Send the pdf
wl -p'
- ???
- Profit!
Notes
The invoice tex and cls files were found at LaTeX Templates.