Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susam/timebox
A timer script for Windows/Linux/Unix/macOS to practice timeboxing (the time management technique)
https://github.com/susam/timebox
batch-script linux macos posix productivity shell-script timeboxing timer-script unix windows
Last synced: 3 months ago
JSON representation
A timer script for Windows/Linux/Unix/macOS to practice timeboxing (the time management technique)
- Host: GitHub
- URL: https://github.com/susam/timebox
- Owner: susam
- License: mit
- Created: 2013-06-08T20:51:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-12-15T17:09:31.000Z (about 4 years ago)
- Last Synced: 2024-08-06T03:06:07.983Z (6 months ago)
- Topics: batch-script, linux, macos, posix, productivity, shell-script, timeboxing, timer-script, unix, windows
- Language: Shell
- Homepage:
- Size: 59.6 KB
- Stars: 43
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
Timebox
=======Timebox is a timer script that may be used to practice timeboxing.
[![Download][SHIELD_WIN]][DOWNLOAD_WIN]
[![Download][SHIELD_UNX]][DOWNLOAD_UNX]
[![Build Status][BUILD_IMG]][BUILD_URL]
[![Coverage Status][COVERAGE_IMG]][COVERAGE_URL]The Windows script has been tested on Windows 7 only. However, it should
work fine on other recent versions of Windows too.The Unix script has been tested with [bash][], [ksh][] and [zsh][] on
Debian and macOS as well as with [dash][], [posh][] and [yash][] on
Debian. It should work fine on any Linux distribution as well as any
POSIX compliant system with a POSIX compliant shell.[SHIELD_WIN]: https://img.shields.io/badge/download-timebox%20for%20Windows-brightgreen.svg
[SHIELD_UNX]: https://img.shields.io/badge/download-timebox%20for%20Unix-brightgreen.svg
[DOWNLOAD_WIN]: https://github.com/susam/timebox/releases/download/0.5.0/timebox.cmd
[DOWNLOAD_UNX]: https://github.com/susam/timebox/releases/download/0.5.0/timebox[BUILD_IMG]: https://travis-ci.org/susam/timebox.svg?branch=master
[BUILD_URL]: https://travis-ci.org/susam/timebox
[COVERAGE_IMG]: https://coveralls.io/repos/github/susam/timebox/badge.svg?branch=master
[COVERAGE_URL]: https://coveralls.io/github/susam/timebox?branch=master[bash]: https://packages.debian.org/stable/bash
[ksh]: https://packages.debian.org/stable/ksh
[zsh]: https://packages.debian.org/stable/zsh
[dash]: https://packages.debian.org/stable/dash
[posh]: https://packages.debian.org/stable/posh
[yash]: https://packages.debian.org/stable/yashContents
--------* [Introduction](#introduction)
* [Features](#features)
* [Get Started](#get-started)
* [Beeps](#beeps)
* [Logs](#logs)
* [Configuration](#configuration)
* [License](#license)
* [Support](#support)Introduction
------------Timeboxing is a time management technique that is believed to boost
productivity by limiting the time during which a task is supposed to be
completed. A time box is a fixed period of time alloted for a task or
activity. The period of time to spend on the task is decided first. One
time box may last anywhere between 15 minutes to 45 minutes. The
duration of a time box may depend on the task or activity.
Alternatively, the task may be scoped in a manner that it can be
completed in a fixed size time box. Then a timer is started with the
decided time interval. Once the timer notifies that the time interval
has expired, any activity or work on the task is stopped, and a short
break is taken before beginning another time box.This project offers scripts for Windows as well as Unix that may be used
to run a time box for a specified duration.Features
--------- Runs in Windows Command Prompt or Linux/Unix/macOS shell.
- Boring user experience.
- No frills.
- No ~~bells and~~ whistles. Actually, there are bells (`printf "\a"`).
See [Beeps](#beeps) for details.
- Logs completed time boxes to a file named `timebox.log` in the user's
home directory.Get Started
-----------Timebox is a single-file executable script.
Download [`timebox.cmd`][DOWNLOAD_WIN] for Windows,
or [`timebox`][DOWNLOAD_UNX] for Linux, Unix, or macOS.Copy it to a directory specified in the `PATH` environment variable. On
Linux/Unix/macOS, make the script executable: `chmod u+x timebox`.To run a 30 minute time box, run the script without any arguments:
timebox
The script accepts an integer argument that specifies the duration of
the time box in minutes. For example, the following command also runs a
30 minute time box:timebox 30
The following command runs a 15 minute time box:
timebox 15
The time at which a time box ends and its duration is written to
`%userprofile%\timebox.log` on Windows and `~/timebox.log` on
Linux/Unix/macOS at the end of a time box.The following command runs a 30 minute box with a text comment that is
recorded in the log file when the time box ends.timebox 30 write essay
To learn more about the usage of the script, run the following command.
timebox --help
After the script starts, it displays a countdown starting with the
specified duration to 0. The countdown is displayed at the beginning of
a time box and whenever the number of minutes remaining in the time box
is a multiple of 5. On Windows, the time remaining is also displayed in
the title bar of the Command Prompt window; the title bar is updated
every minute.Here is how a typical session looks on the terminal:
$ timebox
15:38:24 - 30
15:43:24 - 25
15:48:24 - 20
15:53:24 - 15
15:58:24 - 10
16:03:24 - 05
16:08:24 - 00
:-) :-) :-) :-) :-)
$Apart from writing to standard output as shown above, the script also
beeps a few times. The beeping behaviour is explained in the next
section.Beeps
-----Two beeps are played at the beginning of a time box. If the duration of
the time box is longer then 15 minutes, one beep is played when 15
minutes are remaining in the time box. If the duration of the time box
is longer than 5 minutes, two beeps are played when 5 minutes are
remaining in the time box. Four beeps are played at the end of a time
box. A dialog box with smileys is displayed for ten seconds at the end
of a time box.Configuration
-------------The behaviour of the script can be tweaked a little bit with a
configuration file at `~/.timeboxrc`, i.e., `%userprofile%\.timeboxrc`
on Windows and `$HOME/.timeboxrc` on Linux/Unix/macOS.The script recognizes the following keywords (configuration options) in
the configuration file.- `quiet` - Do not beep in the middle of a time box. Without this
option, the script beeps once when 15 minutes are left and twice
more when 5 minutes are left. This can be distracting on macOS where
the beeps cause the icon for the terminal running the script to
bounce in the Dock. With this configuration option, the beeps occur
only at the start and the end of a time box.- `sober` - Display the message "EOT" instead of smileys when a time
box ends.A configuration keyword may occur anywhere in the configuration file.
The only requirement is that the keyword must appear as a word, i.e., it
must either occur at the beginning of a line or follow a whitespace
character and it must also either occur at the end of a line or followed
by a whitespace character. Therefore, multiple configuration keywords
may occur in the same line or on different lines. Any text in the
configuration file that is not a configuration keyword is ignored.License
-------This is free and open source software. You can use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of it,
under the terms of the MIT License. See [LICENSE.md][L] for details.This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND,
express or implied. See [LICENSE.md][L] for details.[L]: LICENSE.md
Support
-------To report bugs, suggest improvements, or ask questions, please create a
new issue at .