Super simple work tracker.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fabian Kurz 4fb06dae75 Minor updates, bash completion and documentation. 2 years ago
.gitignore Initial commit. 2 years ago
README.md Minor updates, bash completion and documentation. 2 years ago
sw Minor updates, bash completion and documentation. 2 years ago
sw-bash_completion Minor updates, bash completion and documentation. 2 years ago
sws Minor updates, bash completion and documentation. 2 years ago

README.md

sw - a very simple work tracker

Usage

Run sw <project_name> [minutes] on the command line to start counting time for this project (optionally minutes ago). Run sws to get a summary of the time you spent on projects, summarised for all time and for today.

All data will be saved in a very simple plain text file named ~/.sw.

Take a break

The project names mp (Mittagspause - lunch break) and fa (Feierabend - after-work hours) are reserved and will not be counted.

Bash completion

Put sw-bash_completion into /etc/bash_completion.d/ and sw <tab> will show all projects in the current ~/.sw file.

Example output

sw produces no output. sws produces something like this:

Start time: 2019-06-25 07:07:21
proj           total |        today
---------------------+-------------
aa        6h 19m 48s |       9m 22s
proj      4h  8m 52s |       1m 42s
abcde     1h 21m 21s
xyz1      1h  2m 11s
sp1          21m 46s
qwer     17h  2m 52s |       6m 48s
ggg       5h 35m 45s
huhu1        40m  6s
asdf      1h 29m 12s
abc       2h 26m  0s
pddd      4h 17m 15s |      52m 44s
qqq           5m  5s
qrz       2h 37m 17s
dxcc     28h 23m 55s |   2h 31m 37s
fp        2h  3m 57s
dx            9m 36s
katze     2h 28m 13s
blub     38h 56m  5s |   3h 59m 18s

Sum (all): 119h 29m 16s
Sum (day):   7h 41m 31s

Current project fa