2015-01-18 19:46 kili * karolarm, karolarm.1: Copyright 2015. 2015-01-18 19:30 kili * karolarm, karolarm.1: Add a new option -s to play one or more of the sounds also played by upstream karopapier for notification. 2012-02-15 09:46 kili * karolarm: Also log errors with logger(1). 2011-03-09 10:51 kili * karolarm, karolarm.1: Introduce a new option, -b brokeninterval, to increase the sleeping time after an attempt to poll from karopapier.de failed. Default value is 300 seconds. This mitigates the typical terminal spamming in case karopapier.de is down or has some database problems. 2010-03-03 18:30 kili * karolarm: Let turn() return an error code if an error happens. 2010-03-03 13:27 kili * karolarm: Oops! Actually remove sleepcheck from the end of the loop. 2010-02-28 16:45 kili * karolarm: Warn if fetching the state fails (but still don't exit). 2010-02-28 16:39 kili * karolarm: Run sleepcheck before the first download. This should help missing a notification in case karolarm is started from .xsession and no terminal window has been opened yet. Don't exit if something goes wrong with fetching the current games. 2010-01-23 19:11 kili * karolarm: Improve the heuristic a little bit: when the turn count increases right after decreasing, only notify if the previous turn count (after the decrease) is less than or equal to interval / 7.5. This value seems to be the average time the most addicted players need for each game when working through a list of pending games. 2010-01-20 20:30 kili * karolarm, karolarm.1: Add a simple heuristic to avoid skipping a notification in case you finished all games on your pending list and new games popping up before karolarm sees the `0 games' state. 2010-01-20 20:11 kili * karolarm: Rename some stuff: - dran -> turn - wardran -> lastt - d -> t And remove some obsolete quotes, now that turn(), i.e. the former dran(), always prints a number. 2010-01-17 17:05 kili * karolarm: If fetch fails, ensure to return a non-zero return code. 2010-01-17 16:56 kili * karolarm: Simplify. 2010-01-17 15:55 kili * karolarm, karolarm.1: Shrink default interval from 60 to 15 seconds. 2010-01-17 15:53 kili * karolarm: If there's only one game, don't talk about `games'. 2010-01-17 15:17 kili * karolarm: Check wether the value fetched is really a number. If it isn't, return with exit code 1. 2010-01-17 14:58 kili * karolarm: For there be dragons beyond the 80th column... 2010-01-17 14:42 kili * karolarm: - Extract script name from $0 and use this where appropriate. - Let dran() print the number of games. - Make notify() more flexible (use text passed as arguments). - Print number of games in the message. - If dran() ever fails, send a final notification and terminate. 2010-01-17 11:09 kili * karolarm: Teach people to read the fucking man page instead of using stupid GNU options. 2010-01-09 19:40 kili * karolarm.1: Simpler. And remove that BUGS section again; people using this tool are supposed to know how to deal with terminals. 2010-01-09 19:27 kili * karolarm.1: Typo (`you' -> `your'). 2010-01-09 19:20 kili * karolarm.1: Simplify and improve EXAMPLES. 2010-01-09 16:53 kili * karolarm.1: Better wording. 2010-01-09 16:51 kili * karolarm.1: Better example for sending SIGHUP to karolarm (don't mention pkill, since it's quite dangerious on some systems). 2010-01-09 16:36 kili * karolarm, karolarm.1: Reset state on SIGHUP. 2010-01-09 16:13 kili * karolarm: Move things around a little bit. Sort variables. Initialize karo_user when parsing options. Inline url and split a pipe into two lines. 2010-01-09 16:04 kili * karolarm: Use more global variables. Not because I like them, but because shuffling around function parameters in such a simple shell script is probably silly. Also, rename some stuff. 2010-01-09 15:51 kili * karolarm: Oops! Missing $. 2010-01-09 15:47 kili * karolarm: Slightly simpler code. 2010-01-09 15:29 kili * karolarm: Move the check into a new function `bindran'. Keep track of the state in `nichtdran', and simplify the loop a little bit. Use printf, not echo, for notifications. 2010-01-09 15:07 kili * karolarm: When there are no more active games, add another sleepcheck before the next fetch. 2010-01-09 14:59 kili * karolarm: Oops! Repair command line parsing (-a doesn't take an argument). 2010-01-09 14:47 kili * karolarm: Add a carriage return to the notification. 2010-01-09 14:36 kili * karolarm.1: New sentence, new line. 2010-01-09 14:21 kili * karolarm, karolarm.1: Make `-u' obsolete and let the user id passed as a single argument. Most users will have a different user id at karopapier.de than on their local account, so passing the karopapier user id is expected to be the default case. Keep the `-u' option for backwards compatibility, just remove it from the usage message and from the man page. While here, zap two more occurences of the ugly term `script' and explicitely recommend to run karolarm in the background. 2010-01-09 13:51 kili * karolarm.1: Change the name in the header to KAROLARM. While here, don't call it a `script'. The term `utility' sounds much cooler. 2010-01-09 13:43 kili * karolarm.1: Mention the problem with terminal multiplexers and remote shells in a BUGS session (even if this isn't a real bug). 2010-01-09 13:10 kili * karolarm, karolarm.1: Write notifications ttys marked as writable for other users (i.e. where `mesg n' has been run) by default. If you really want to get notifications on all your ttys, start karolarm with the `-a' option. 2010-01-09 12:44 kili * karolarm: Move the sleep into checkloggedin() and rename the latter to sleepcheck(). 2010-01-07 22:21 kili * karolarm: Sleep immediately after a notification. 2010-01-07 22:20 kili * karolarm.1: Format `interval'. 2010-01-03 20:25 kili * karolarm: Use more verbose variable names `local_user' and `karo_user'. Also, initialize `karo_user' from `local_user' and not the other way around, since `karo_user' can be overridden by -u. The former implementation confused Didi (mainly because it actually *was* confusing). 2010-01-03 19:36 kili * karolarm.1: Add a missing space. 2010-01-03 19:25 kili * karolarm.1: Shorten description of `-u user'. Add some examples. 2010-01-03 13:18 kili * karolarm, karolarm.1: Rename to `karolarm'. 2010-01-03 12:42 kili * karopapier, karopapier.1: Use my openbsd address. 2010-01-03 12:37 kili * karopapier: Split pipe into two lines. Remove unneeded quotes. 2010-01-03 11:46 kili * karopapier.1: Better wording. Use mdocdate. 2009-12-30 12:27 kili * karopapier: Check tty usage *after* the interval. 2009-12-30 12:16 kili * karopapier, karopapier.1: Exit if there are no ttys owned by the user. 2009-12-29 11:25 kili * karopapier.1: Spelling errors. 2009-03-07 16:19 kili * karopapier.1: Add my email address. 2007-10-07 00:45 kili * karopapier: Add a newline. 2007-10-06 22:56 kili * karopapier, karopapier.1: Don't use write(1). Instead, get all owned ttys with who(1) and directly echo to them. 2007-10-06 17:26 kili * karopapier: Notify the correct (local) user, not the one specified with -u. 2007-10-06 16:23 kili * karopapier: Better wording. 2007-10-06 16:22 kili * karopapier, karopapier.1: Add karopapier script and manpage.