forked from tagtime/TagTime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.pl.template
79 lines (63 loc) · 3.39 KB
/
settings.pl.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Settings for TagTime.
# This file must be in your home directory, called .tagtimerc
# NB: restart the daemon (tagtimed.pl) if you change this file.
$usr = "__USER__"; # CHANGEME to your username
$path = "__PATH__"; # CHANGEME to your path to tagtime
if($path !~ /\/$/) { $path.="/"; }
$logf = "$path$usr.log"; # log file for pings
# If you're using windows, you'll need cygwin and to set this flag to 1:
$cygwin = __CYGWIN__; # CHANGEME to 1 if you're using windows/cygwin.
$ED = "__ED__ +"; # CHANGEME if you don't like vi (eg: /usr/bin/pico)
$XT = "__XT__"; # CHANGEME to your path to xterm
# If you're running TagTime on multiple machines, set $multipleflag to 1 and
# optionally change the tag that is automatically added from this machine.
# This allows multiple TagTime instances to coexist on one graph, by updating
# only those data points they were themselves responsible for writing.
$multipleflag = 0;
if($multipleflag) {
use Sys::Hostname
$hostname = hostname;
$machineid = "TT-$hostname";
}
# Get your personal Beeminder auth token (after signing in) from
# https://www.beeminder.com/api/v1/auth_token.json
$beemauth = "abc123"; # CHANGEME to your personal beeminder auth token
# WARNING WARNING WARNING:
# if you point this at a beeminder goal with data that was not generated from
# this tagtime log, it will DELETE ALL OF YOUR DATA
# CHANGEME by adding entries for each beeminder graph you want to auto-update:
%beeminder = (
#"alice/work" => "job", # all "job" pings get added to bmndr.com/alice/work
#"bob/play" => ["fun","whee"], # pings w/ "fun" and/or "whee" sent to bob/play
# ADVANCED USAGE: regular expressions
# pings tagged like "eat1", "eat2", "eat3" get added to carol/food:
#"carol/food" => qr/\beat\d+\b/,
# ADVANCED USAGE: plug-in functions
# pings tagged anything except "afk" get added to "dan/nafk":
#"dan/nafk" => sub { return shift() !~ /\bafk\b/; }
# pings tagged "workout" get added to dave/tueworkouts, but only on tuesdays:
#"dave/tueworkouts" => sub { my @now = localtime();
# return shift() =~/\bworkout\b/ && $now[6] == 2;
#}
);
# Pings from more than this many seconds ago get autologged with tags "afk" and
# "RETRO". (Pings can be overdue either because the computer was off or tagtime
# was waiting for you to answer a previous ping. If the computer was off, the
# tag "off" is also added.)
$retrothresh = 60;
# If you want the universal ping schedule, don't touch these 3 settings...
$gap = 45*60; # Average number of seconds between pings (eg, 60*60 = 1 hour).
$URPING = 1184097393; # Ur-ping, ie, the birth of timepie/tagtime! (unixtime)
$seed = 11193462;
$linelen = 79; # Try to keep log lines at most this long.
$catchup = 0; # Whether it beeps for old pings, ie, should it beep a bunch
# of times in a row when the computer wakes from sleep.
$enforcenums = 0; # Whether it forces you to include a number in your
# ping response (include tag non or nonXX where XX is day
# of month to override). This is for task editor integration.
# System command that will play a sound for pings.
# Often "play" or "playsound" on Linux, or "afplay" on Mac osx.
# $playsound = "afplay ${path}sound/blip-twang.wav";
# $playsound = "echo -e '\a'"; # this is the default if $playsound not defined.
# $playsound = ""; # makes tagtime stay quiet.
1; # When requiring a library in perl it has to return 1.