Closes application after specified work interval
Project description
Killtimer - do more working less!
This utility helps limit the amount of time devoted to work by keeping track of clearly defined work periods. It's like a timer which cannot be stopped but will kill the passed command forcing the user to finish the job.
This may sound counterintuitive, but a lot of studies show that limiting time for a task forces the person to use the time more effectively.
Features
- CLI interface
- Three configurable effort levels:
- Minimal
- Work
- Overtime
- Keep track of user-provided command and kill it if it has been running too long (after overtime)
- Utilizes desktop notifications to inform users about the finished period
- Optionally can play a sound when minimal effort/work period is done
- Allow storing amount of work done as CSV file for further analysis
Install
$ pip install [--user] killtimer
Usage
usage: killtimer [-h] [-m duration] [-w duration] [-o duration] [-l log_file] [-t title] [-s sound_file] [command [command ...]]
Close application when time runs out
positional arguments:
command Executable (with arguments) to run (default: None)
optional arguments:
-h, --help show this help message and exit
-m duration, --minimal-effort duration
Minimal work duration (default: 0:10:00)
-w duration, --work duration
Proper work duration (default: 1:00:00)
-o duration, --overtime duration
Overtime duration (default: 0:15:00)
-l log_file, --log log_file
Log file where to store amount of work done (default: None)
-t title, --title title
Title to display above progress bars and configuration (default: None)
-s sound_file, --sound sound_file
Sound file to play when minimal effort or work period is reached (default: None)
Usually you would want to create alias in your *rc
file like:
alias blender-work="killtimer -m 10m -w 1h -o 10m -t 'Creative work' -l /path/to/worklog.csv blender"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
killtimer-0.4.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file killtimer-0.4.0.tar.gz
.
File metadata
- Download URL: killtimer-0.4.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3c3932199dfca85be0afb08879468eded41eb5d70072ca47e73a7ce023cda1 |
|
MD5 | eeb7c28fb6c6e75b0df30a4b46018388 |
|
BLAKE2b-256 | a9a5a068b278a169115885f0ccc16f87eee3974a4170eeba149e2b64ebd0426a |
File details
Details for the file killtimer-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: killtimer-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1120cc51ab356e46099cbb82eb62c58de2da704ef3e3c808aa0bdd3f80db346d |
|
MD5 | c55dd2b497e7a07117f94610139e1efe |
|
BLAKE2b-256 | aef03712905fccab629205074c62e3bf70c2ce47659ecfe7da2be2486c6f4905 |